Sindbad~EG File Manager
from core import app
from flask import url_for
from datetime import datetime, date, time, timedelta
import datetime
#settime working as global variable but commented for easy identification of this variable using class name
# global settime
# settime = 5
class Helper:
data_inprogress = 1
testmail = "mukeshkumar@numerotec.com"
society_id = 3
attch_type_id = 12
conf_id = 17
def email_mask(email):
if email:
lo = email.find('@')
if lo>0:
mask_email = email[0]+"*****"+email[lo-1:]
return mask_email
return email
def mobile_mask(mobile):
if mobile:
lo = len(mobile)
if lo>0:
mask = mobile[:2]+"******"+mobile[lo-2:]
return mask
return mobile
def getcurrenttimestamp():
ct = datetime.datetime.now()
ts = ct.timestamp()
return ts
app.jinja_env.globals.update(Helper=Helper)
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists