1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

More fixes

This commit is contained in:
krateng
2021-12-20 00:15:22 +01:00
parent 1ec283f885
commit ba96c8e14f
3 changed files with 3 additions and 66 deletions

View File

@@ -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")

View File

@@ -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)