nci-cidc-api-modules 1.0.19__py3-none-any.whl → 1.0.27__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.
cidc_api/models/models.py CHANGED
@@ -129,7 +129,6 @@ from ..shared.gcloud_client import (
129
129
  )
130
130
  from ..config.logging import get_logger
131
131
 
132
-
133
132
  os.environ["TZ"] = "UTC"
134
133
  logger = get_logger(__name__)
135
134
 
@@ -2196,9 +2195,13 @@ class UploadJobs(CommonColumns):
2196
2195
 
2197
2196
  @classmethod
2198
2197
  @with_default_session
2199
- def find_by_trial_id(cls, trial_id: str, session):
2200
- uploads = session.query(UploadJobs).filter_by(trial_id=trial_id)
2201
- return uploads
2198
+ def find_first_manifest_job(cls, trial_id: str, session):
2199
+ return (
2200
+ session.query(UploadJobs)
2201
+ .filter_by(trial_id=trial_id, gcs_xlsx_uri="")
2202
+ .order_by(text("id ASC"))
2203
+ .first()
2204
+ )
2202
2205
 
2203
2206
  @with_default_session
2204
2207
  def ingestion_success(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nci_cidc_api_modules
3
- Version: 1.0.19
3
+ Version: 1.0.27
4
4
  Summary: SQLAlchemy data models and configuration tools used in the NCI CIDC API
5
5
  Home-page: https://github.com/NCI-CIDC/cidc-api-gae
6
6
  License: MIT license
@@ -28,7 +28,7 @@ Requires-Dist: python-dotenv ==0.10.3
28
28
  Requires-Dist: requests ==2.32.3
29
29
  Requires-Dist: jinja2 ==3.1.4
30
30
  Requires-Dist: certifi ==2024.7.4
31
- Requires-Dist: nci-cidc-schemas ==0.26.35
31
+ Requires-Dist: nci-cidc-schemas ==0.26.37
32
32
 
33
33
  # NCI CIDC API <!-- omit in TOC -->
34
34
 
@@ -8,7 +8,7 @@ cidc_api/csms/auth.py,sha256=25Yma2Kz3KLENAPSeBYacFuSZXng-EDgmgInKBsRyP0,3191
8
8
  cidc_api/models/__init__.py,sha256=bl445G8Zic9YbhZ8ZBni07wtBMhLJRMBA-JqjLxx2bw,66
9
9
  cidc_api/models/csms_api.py,sha256=Wp4b53vwOqSlOIaoAYGlI1p8ZfXRXmVJ6MLcsvzq0LA,31664
10
10
  cidc_api/models/migrations.py,sha256=gp9vtkYbA9FFy2s-7woelAmsvQbJ41LO2_DY-YkFIrQ,11464
11
- cidc_api/models/models.py,sha256=SBVbIUbkeUSAA2jl-3IL93HDdR8tRrTHYQ80nH_8gq0,125025
11
+ cidc_api/models/models.py,sha256=jkV7AWCDJw1nvaMXNTdCNvLBgzFTaNwxzMxe1cLff6Q,125118
12
12
  cidc_api/models/schemas.py,sha256=7tDYtmULuzTt2kg7RorWhte06ffalgpQKrFiDRGcPEQ,2711
13
13
  cidc_api/models/files/__init__.py,sha256=8BMTnUSHzUbz0lBeEQY6NvApxDD3GMWMduoVMos2g4Y,213
14
14
  cidc_api/models/files/details.py,sha256=h6R0p_hi-ukHsO7HV-3Wukccp0zRLJ1Oie_JNA_7Pl0,62274
@@ -19,8 +19,8 @@ cidc_api/shared/emails.py,sha256=5dyuKlpcg1M4P_RrAt0ss2hiCqb-Y7p2XXR1d9uBXg8,486
19
19
  cidc_api/shared/gcloud_client.py,sha256=7dDs0crLMJKdIp4IDSfrZBMB3h-zvWNieB81azoeLO4,33746
20
20
  cidc_api/shared/jose.py,sha256=QO30uIhbYDwzPEWWJXz0PfyV7E1AZHReEZJUVT70UJY,1844
21
21
  cidc_api/shared/rest_utils.py,sha256=LMfBpvJRjkfQjCzVXuhTTe4Foz4wlvaKg6QntyR-Hkc,6648
22
- nci_cidc_api_modules-1.0.19.dist-info/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
23
- nci_cidc_api_modules-1.0.19.dist-info/METADATA,sha256=cYPVMMJcy0KeUbdFLmchOSZc4EM16gjepAAgxPtQAXc,40673
24
- nci_cidc_api_modules-1.0.19.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
25
- nci_cidc_api_modules-1.0.19.dist-info/top_level.txt,sha256=rNiRzL0lJGi5Q9tY9uSoMdTbJ-7u5c_D2E86KA94yRA,9
26
- nci_cidc_api_modules-1.0.19.dist-info/RECORD,,
22
+ nci_cidc_api_modules-1.0.27.dist-info/LICENSE,sha256=pNYWVTHaYonnmJyplmeAp7tQAjosmDpAWjb34jjv7Xs,1102
23
+ nci_cidc_api_modules-1.0.27.dist-info/METADATA,sha256=PM2bvo-Fhnn7EK034vkKIvrIZfs8pXsPrnGUNx2SSXg,40673
24
+ nci_cidc_api_modules-1.0.27.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
25
+ nci_cidc_api_modules-1.0.27.dist-info/top_level.txt,sha256=rNiRzL0lJGi5Q9tY9uSoMdTbJ-7u5c_D2E86KA94yRA,9
26
+ nci_cidc_api_modules-1.0.27.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5