Kevin Hu
commited on
Commit
·
c2bd02f
1
Parent(s):
f6252d5
update dashscope (#2871)
Browse files### What problem does this PR solve?
#2857
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
- api/apps/tenant_app.py +2 -2
- poetry.lock +0 -0
- pyproject.toml +1 -1
api/apps/tenant_app.py
CHANGED
@@ -31,7 +31,7 @@ def user_list(tenant_id):
|
|
31 |
try:
|
32 |
users = UserTenantService.get_by_tenant_id(tenant_id)
|
33 |
for u in users:
|
34 |
-
u["delta_seconds"] = delta_seconds(u["update_date"])
|
35 |
return get_json_result(data=users)
|
36 |
except Exception as e:
|
37 |
return server_error_response(e)
|
@@ -82,7 +82,7 @@ def tenant_list():
|
|
82 |
try:
|
83 |
users = UserTenantService.get_tenants_by_user_id(current_user.id)
|
84 |
for u in users:
|
85 |
-
u["delta_seconds"] = delta_seconds(u["update_date"])
|
86 |
return get_json_result(data=users)
|
87 |
except Exception as e:
|
88 |
return server_error_response(e)
|
|
|
31 |
try:
|
32 |
users = UserTenantService.get_by_tenant_id(tenant_id)
|
33 |
for u in users:
|
34 |
+
u["delta_seconds"] = delta_seconds(str(u["update_date"]))
|
35 |
return get_json_result(data=users)
|
36 |
except Exception as e:
|
37 |
return server_error_response(e)
|
|
|
82 |
try:
|
83 |
users = UserTenantService.get_tenants_by_user_id(current_user.id)
|
84 |
for u in users:
|
85 |
+
u["delta_seconds"] = delta_seconds(str(u["update_date"]))
|
86 |
return get_json_result(data=users)
|
87 |
except Exception as e:
|
88 |
return server_error_response(e)
|
poetry.lock
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
pyproject.toml
CHANGED
@@ -24,7 +24,7 @@ cachetools = "5.3.3"
|
|
24 |
chardet = "5.2.0"
|
25 |
cn2an = "0.5.22"
|
26 |
cohere = "5.6.2"
|
27 |
-
dashscope = "1.
|
28 |
deepl = "1.18.0"
|
29 |
demjson3 = "3.0.6"
|
30 |
discord-py = "2.3.2"
|
|
|
24 |
chardet = "5.2.0"
|
25 |
cn2an = "0.5.22"
|
26 |
cohere = "5.6.2"
|
27 |
+
dashscope = "1.20.11"
|
28 |
deepl = "1.18.0"
|
29 |
demjson3 = "3.0.6"
|
30 |
discord-py = "2.3.2"
|