aiteamutils 0.2.150__py3-none-any.whl → 0.2.152__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.
aiteamutils/files.py CHANGED
@@ -207,7 +207,7 @@ class FileHandler:
207
207
  ) VALUES (
208
208
  :ulid, :entity_name, :entity_ulid, :original_name, :storage_path,
209
209
  :mime_type, :size, :checksum, :column_name, :created_at, :updated_at,
210
- false
210
+ :is_deleted
211
211
  ) RETURNING *
212
212
  """),
213
213
  {
@@ -221,13 +221,28 @@ class FileHandler:
221
221
  "checksum": file_info["checksum"],
222
222
  "column_name": column_name,
223
223
  "created_at": now,
224
- "updated_at": now
224
+ "updated_at": now,
225
+ "is_deleted": False
225
226
  }
226
227
  )
227
228
 
228
- file_info = dict(result.fetchone())
229
- file_infos.append(file_info)
230
- logger.info(f"[DB 저장 완료] {original_name}, ulid: {file_info['ulid']}")
229
+ row = result.fetchone()
230
+ db_file_info = {
231
+ "ulid": row.ulid,
232
+ "entity_name": row.entity_name,
233
+ "entity_ulid": row.entity_ulid,
234
+ "original_name": row.original_name,
235
+ "storage_path": row.storage_path,
236
+ "mime_type": row.mime_type,
237
+ "size": row.size,
238
+ "checksum": row.checksum,
239
+ "column_name": row.column_name,
240
+ "created_at": row.created_at,
241
+ "updated_at": row.updated_at,
242
+ "is_deleted": row.is_deleted
243
+ }
244
+ file_infos.append(db_file_info)
245
+ logger.info(f"[DB 저장 완료] {original_name}, ulid: {db_file_info['ulid']}")
231
246
 
232
247
  except Exception as e:
233
248
  logger.error(f"[DB 저장 실패] {original_name}: {str(e)}")
aiteamutils/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  """버전 정보"""
2
- __version__ = "0.2.150"
2
+ __version__ = "0.2.152"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.150
3
+ Version: 0.2.152
4
4
  Summary: AI Team Utilities
5
5
  Project-URL: Homepage, https://github.com/yourusername/aiteamutils
6
6
  Project-URL: Issues, https://github.com/yourusername/aiteamutils/issues
@@ -7,11 +7,11 @@ aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
7
7
  aiteamutils/database.py,sha256=msvBKtxWeQVOo0v2Q9i2azuTNtnUItuNNar52gdRZTo,20418
8
8
  aiteamutils/enums.py,sha256=7WLqlcJqQWtETAga2WAxNp3dJTQIAd2TW-4WzkoHHa8,2498
9
9
  aiteamutils/exceptions.py,sha256=pgf3ersezObyl17wAO3I2fb8m9t2OzWDX1mSjwAWm2Y,16035
10
- aiteamutils/files.py,sha256=Vk0qyN-Y4lHEbQCuzBH3qD5xUCE199jxh3UPkDafQ5M,12090
10
+ aiteamutils/files.py,sha256=Qq2w3VAEOzvsDirYtxRTN48LnIzf4TPUH2LftmyYtQk,12831
11
11
  aiteamutils/models.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
12
12
  aiteamutils/security.py,sha256=McUl3t5Z5SyUDVUHymHdDkYyF4YSeg4g9fFMML4W6Kw,11630
13
13
  aiteamutils/validators.py,sha256=_WHN6jqJQzKM5uPTg-Da8U2qqevS84XeKMkCCF4C_lY,9591
14
- aiteamutils/version.py,sha256=TTm-aNGBbW49KMyl8LrK2q8bq4hTUA21-0AnGlcUpy4,43
15
- aiteamutils-0.2.150.dist-info/METADATA,sha256=ZN2950HkUhK3HkdsC8NEf3cQPGkCNwqng7m9XWI5Ch4,1743
16
- aiteamutils-0.2.150.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- aiteamutils-0.2.150.dist-info/RECORD,,
14
+ aiteamutils/version.py,sha256=-V1OIV-YxmR0eGsnYaRFGT42jRuIxr5jWb0B2zk6og0,43
15
+ aiteamutils-0.2.152.dist-info/METADATA,sha256=IfOpmNV9ktJkppAl7cQ6t8UoM6UttJnfUZtlAv5kMmE,1743
16
+ aiteamutils-0.2.152.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ aiteamutils-0.2.152.dist-info/RECORD,,