This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask_wtf import FlaskForm | |
from wtforms.fields import SelectField | |
def opcoes_UF(): | |
return [ | |
("AC", "Acre"), | |
("AL", "Alagoas"), | |
("AP", "Amapá"), | |
("AM", "Amazonas"), | |
("BA", "Bahia"), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from apiman.redis import db | |
from datetime import timedelta | |
def set_expiration(data): | |
c = 0 | |
for x in data: | |
if 'analytics' in x: | |
db.expire(x, timedelta(minutes=20)) | |
print(f'Implementada expiração em {c} chaves') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.Clipboard = (function(window, document, navigator) { | |
var textArea, | |
copy; | |
function isOS() { | |
return navigator.userAgent.match(/ipad|iphone/i); | |
} | |
function createTextArea(text) { | |
textArea = document.createElement('textArea'); |
OlderNewer