Fixes in time
This commit is contained in:
parent
13df174796
commit
e5262a9cd5
3 changed files with 6 additions and 4 deletions
|
|
@ -118,7 +118,9 @@ def now(utc=False, tz=''):
|
|||
if tz=='':
|
||||
actual=arrow.now().format(sql_format_time)
|
||||
else:
|
||||
actual=arrow.to(tz).now().format(sql_format_time)
|
||||
#actual=arrow.to(tz).now().format(sql_format_time)
|
||||
utc=arrow.utcnow()
|
||||
actual=utc.to(tz).format(sql_format_time)
|
||||
else:
|
||||
actual=arrow.utcnow().format(sql_format_time)
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ class SqlClass:
|
|||
cursors_connect=None
|
||||
disable_pool=False
|
||||
pymysql_install=False
|
||||
pool_size=15
|
||||
|
||||
def __init__(self, connection):
|
||||
|
||||
self.max_overflow=-1
|
||||
self.pool_size=5
|
||||
self.error_connection=""
|
||||
# Data of connection
|
||||
self.connection=connection
|
||||
|
|
|
|||
|
|
@ -737,8 +737,8 @@ class WebModel:
|
|||
row=False
|
||||
else:
|
||||
if self.show_formatted:
|
||||
for k, col in row.items():
|
||||
row[k]=self.fields[k].show_formatted(col)
|
||||
#for k, col in row.items():
|
||||
row[k]={k:self.fields[k].show_formatted(col) for k,col in row.items()}
|
||||
|
||||
|
||||
return row
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue