mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
More fixes
This commit is contained in:
@@ -271,8 +271,7 @@ malojaconfig = Configuration(
|
||||
}
|
||||
},
|
||||
configfile=data_dir['settings']("settings.ini"),
|
||||
save_endpoint="/apis/mlj_1/settings"
|
||||
save_endpoint="/apis/mlj_1/settings",
|
||||
env_prefix="MALOJA_"
|
||||
|
||||
)
|
||||
|
||||
malojaconfig.render_help("settings.md")
|
||||
|
||||
@@ -487,7 +487,7 @@ def timestamp_desc(t,short=False):
|
||||
|
||||
timeobj = datetime.fromtimestamp(t,tz=TIMEZONE)
|
||||
|
||||
if not short: return timeobj.strftime(malojaconfig["TIMEZONE"])
|
||||
if not short: return timeobj.strftime(malojaconfig["TIME_FORMAT"])
|
||||
|
||||
difference = int(datetime.now().timestamp() - t)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user