Fix link to API

This commit is contained in:
Black Coffee 2022-10-20 17:01:03 +01:00
parent ecfd4b3d66
commit ce092fcded
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ async def get_lightning_stats(gerty):
def get_next_update_time(sleep_time_seconds: int = 0, timezone: str = "Europe/London"):
utc_now = pytz.utc.localize(datetime.utcnow())
utc_now = datetime.utcnow()
next_refresh_time = utc_now + timedelta(0, sleep_time_seconds)
local_refresh_time = next_refresh_time.astimezone(pytz.timezone(timezone))
return "{0} {1}".format(

View File

@ -263,7 +263,7 @@
)
obj.fsat = new Intl.NumberFormat(LOCALE).format(obj.amount)
obj.gerty = ['/gerty/', obj.id].join('')
obj.gertyJson = ['/gerty/api/v1/gerty/', obj.id].join('')
obj.gertyJson = ['/gerty/api/v1/gerty/', obj.id, '/0'].join('')
return obj
}