aiteamutils 0.2.149__py3-none-any.whl → 0.2.151__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
@@ -197,14 +197,17 @@ class FileHandler:
|
|
197
197
|
file_ulid = str(ULID())
|
198
198
|
logger.info(f"[생성된 파일 ULID] {file_ulid}")
|
199
199
|
|
200
|
+
now = datetime.now(timezone.utc)
|
200
201
|
result = await db_session.execute(
|
201
202
|
text("""
|
202
203
|
INSERT INTO files (
|
203
204
|
ulid, entity_name, entity_ulid, original_name, storage_path,
|
204
|
-
mime_type, size, checksum, column_name, created_at, updated_at
|
205
|
+
mime_type, size, checksum, column_name, created_at, updated_at,
|
206
|
+
is_deleted
|
205
207
|
) VALUES (
|
206
208
|
:ulid, :entity_name, :entity_ulid, :original_name, :storage_path,
|
207
|
-
:mime_type, :size, :checksum, :column_name, :created_at, :updated_at
|
209
|
+
:mime_type, :size, :checksum, :column_name, :created_at, :updated_at,
|
210
|
+
:is_deleted
|
208
211
|
) RETURNING *
|
209
212
|
"""),
|
210
213
|
{
|
@@ -217,8 +220,9 @@ class FileHandler:
|
|
217
220
|
"size": file_info["size"],
|
218
221
|
"checksum": file_info["checksum"],
|
219
222
|
"column_name": column_name,
|
220
|
-
"created_at":
|
221
|
-
"updated_at":
|
223
|
+
"created_at": now,
|
224
|
+
"updated_at": now,
|
225
|
+
"is_deleted": False
|
222
226
|
}
|
223
227
|
)
|
224
228
|
|
aiteamutils/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"""버전 정보"""
|
2
|
-
__version__ = "0.2.
|
2
|
+
__version__ = "0.2.151"
|
@@ -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=
|
10
|
+
aiteamutils/files.py,sha256=zyNp1r1xZsHSAhh8MqkHN3abaL0JqJzHji0ifopKbRc,12145
|
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=
|
15
|
-
aiteamutils-0.2.
|
16
|
-
aiteamutils-0.2.
|
17
|
-
aiteamutils-0.2.
|
14
|
+
aiteamutils/version.py,sha256=7Qe8azalUapGyE5J2xTns8UFyhTlo8EgwtdXePpAmw4,43
|
15
|
+
aiteamutils-0.2.151.dist-info/METADATA,sha256=9S7Hbf6NWh6VQTez-mOv3iZfvQjjVh3AANxSQxOh6k4,1743
|
16
|
+
aiteamutils-0.2.151.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
17
|
+
aiteamutils-0.2.151.dist-info/RECORD,,
|
File without changes
|