qmenta-client 1.1.dev1226__py3-none-any.whl → 1.1.dev1230__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
qmenta/client/Project.py
CHANGED
|
@@ -91,15 +91,16 @@ class Project:
|
|
|
91
91
|
"""
|
|
92
92
|
|
|
93
93
|
def __init__(self, account: Account, project_id, max_upload_retries=5):
|
|
94
|
-
|
|
95
94
|
# if project_id is a string (the name of the project), get the
|
|
96
95
|
# project id (int)
|
|
97
|
-
if
|
|
96
|
+
if isinstance(project_id, str):
|
|
98
97
|
project_name = project_id
|
|
99
98
|
project_id = next(iter(filter(
|
|
100
99
|
lambda proj: proj["name"] == project_id, account.projects)
|
|
101
100
|
))["id"]
|
|
102
101
|
else:
|
|
102
|
+
if isinstance(project_id, float):
|
|
103
|
+
project_id = int(project_id)
|
|
103
104
|
project_name = next(iter(filter(
|
|
104
105
|
lambda proj: proj["id"] == project_id, account.projects)
|
|
105
106
|
))["name"]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
qmenta/__init__.py,sha256=jv2YF__bseklT3OWEzlqJ5qE24c4aWd5F4r0TTjOrWQ,65
|
|
2
2
|
qmenta/client/Account.py,sha256=MEljEy9cmg2uP2FG1d3TZAgfj66EE2_3PQAZ9rvpCXY,9647
|
|
3
3
|
qmenta/client/File.py,sha256=ZgvSqejIosUt4uoX7opUnPnp5XGEaJNMRwFC0mQVB8k,5344
|
|
4
|
-
qmenta/client/Project.py,sha256=
|
|
4
|
+
qmenta/client/Project.py,sha256=rxOd03sZXCrZjHbxQlgV7qbEXc2STX-sTSXprBKkIOA,48357
|
|
5
5
|
qmenta/client/Subject.py,sha256=lhxxVdQ6d-GNoQC8mrJwa4L1f44nJc4PcJtDspmKN7I,8756
|
|
6
6
|
qmenta/client/__init__.py,sha256=AjTojBhZeW5nl0i605KS8S1Gl5tPNc1hdzD47BGNfoI,147
|
|
7
7
|
qmenta/client/utils.py,sha256=5DK2T_HQprrCwLS0Ycm2CjseaYmAUKaJkJvYoW-Rqzc,2479
|
|
8
|
-
qmenta_client-1.1.
|
|
9
|
-
qmenta_client-1.1.
|
|
10
|
-
qmenta_client-1.1.
|
|
8
|
+
qmenta_client-1.1.dev1230.dist-info/METADATA,sha256=GVsXH4eCCog-jbYRrB-vthtUbOnvsemdnc-yAmeNdak,609
|
|
9
|
+
qmenta_client-1.1.dev1230.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
10
|
+
qmenta_client-1.1.dev1230.dist-info/RECORD,,
|