Break Fix

This commit is contained in:
Kekskurse 2019-07-11 10:37:22 +02:00
parent 2491981f4d
commit f1a12892f6

View file

@ -81,7 +81,11 @@ def function_updateAccount(number, api = None):
api = FunkAPI(res[0], res[1])
usage = api.getData()["data"]["me"]["customerProducts"][0]["mobileNumbers"][0]["usage"]["usedDataPercentage"]
plan = getCurrentPlan(api)["productServiceId"]
plan = getCurrentPlan(api)
if plan == None:
plan = 42;
else:
plan = plan["productServiceId"]
cur.execute("INSERT INTO updates VALUES (%s, %s, '%s', '%s')" % (
number,