Merge branch 'main' of ssh://git.buechner.me:2222/nbuechner/ubottu-web
This commit is contained in:
commit
17d47ba71f
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ def fetch_matrix_accounts(profile_id):
|
||||||
matrix_ids.append(matrix_id)
|
matrix_ids.append(matrix_id)
|
||||||
# Cache the result with expiration time of 30 minutes (1800 seconds)
|
# Cache the result with expiration time of 30 minutes (1800 seconds)
|
||||||
cache.setex(f"matrix_{profile_id}", 1800, json.dumps(matrix_ids))
|
cache.setex(f"matrix_{profile_id}", 1800, json.dumps(matrix_ids))
|
||||||
|
return matrix_ids
|
||||||
|
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
print(f"Profule with name {profile_id} was not found. Error: {e}")
|
print(f"Profule with name {profile_id} was not found. Error: {e}")
|
||||||
|
|
Loading…
Reference in a new issue