photo-objects 0.9.1__py3-none-any.whl → 0.9.2__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.
- photo_objects/django/objsto.py +8 -4
- {photo_objects-0.9.1.dist-info → photo_objects-0.9.2.dist-info}/METADATA +1 -1
- {photo_objects-0.9.1.dist-info → photo_objects-0.9.2.dist-info}/RECORD +6 -6
- {photo_objects-0.9.1.dist-info → photo_objects-0.9.2.dist-info}/WHEEL +0 -0
- {photo_objects-0.9.1.dist-info → photo_objects-0.9.2.dist-info}/licenses/LICENSE +0 -0
- {photo_objects-0.9.1.dist-info → photo_objects-0.9.2.dist-info}/top_level.txt +0 -0
photo_objects/django/objsto.py
CHANGED
|
@@ -139,10 +139,14 @@ def put_backup_json(key: str, data: dict):
|
|
|
139
139
|
|
|
140
140
|
def get_backup_object(backup_id: int):
|
|
141
141
|
client, bucket = _backup_access()
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
|
|
143
|
+
try:
|
|
144
|
+
data = client.get_object(bucket, backup_info_key(backup_id))
|
|
145
|
+
return json.loads(data.read())
|
|
146
|
+
except S3Error as e:
|
|
147
|
+
if e.code == "NoSuchKey":
|
|
148
|
+
return None
|
|
149
|
+
raise
|
|
146
150
|
|
|
147
151
|
|
|
148
152
|
def get_backup_objects():
|
|
@@ -10,7 +10,7 @@ photo_objects/django/conf.py,sha256=ZpeIulEc1tpr8AO52meNKOF30Xf5osbDtDyHvQRtkx4,
|
|
|
10
10
|
photo_objects/django/context_processors.py,sha256=XacUmcYV-4NMMMNXPWrHKdvNd6lfyamisngaVerREiU,306
|
|
11
11
|
photo_objects/django/forms.py,sha256=zSSmdIYn4PEx1Nnw-tuo4h4otKj3C099lB4-vp2BRUc,6861
|
|
12
12
|
photo_objects/django/models.py,sha256=OxkkczIBg7TaFWWm4VdtbRMJOK_OQKrV29g-X2cm5BQ,7247
|
|
13
|
-
photo_objects/django/objsto.py,sha256=
|
|
13
|
+
photo_objects/django/objsto.py,sha256=jDk5o1b0TZdRA5ie8rbEB4B7y9yG2FzYJGqUPER5JNk,6340
|
|
14
14
|
photo_objects/django/signals.py,sha256=_gb4vlZkeFNYWXxwhNreaUJoOsbIWvP8OovVLtzepaE,2161
|
|
15
15
|
photo_objects/django/urls.py,sha256=XnOSEB8YtAJamlEsjKYz6U1DfDu7HHZpAinpqdulR8k,2501
|
|
16
16
|
photo_objects/django/api/__init__.py,sha256=51CRTiE975ufVhvI5x-M_2D28JP8FZWyLFiuV5EaQSg,120
|
|
@@ -59,8 +59,8 @@ photo_objects/django/views/ui/photo.py,sha256=flwcET5nSChzfyAEWRTUlklTW2o64przNX
|
|
|
59
59
|
photo_objects/django/views/ui/photo_change_request.py,sha256=eaYGXFqtHj8qonDAmPyn4nrEHkL13EBD-1s8Phs0XP4,2098
|
|
60
60
|
photo_objects/django/views/ui/users.py,sha256=nb73cnzuV98QkJb0j8F2hqPgOGFIWpUFTFu6dXMeVwM,722
|
|
61
61
|
photo_objects/django/views/ui/utils.py,sha256=YV_YcUbX-zUkdFnBlezPChR6aPDhZJ9loSOHBSzF6Cc,273
|
|
62
|
-
photo_objects-0.9.
|
|
63
|
-
photo_objects-0.9.
|
|
64
|
-
photo_objects-0.9.
|
|
65
|
-
photo_objects-0.9.
|
|
66
|
-
photo_objects-0.9.
|
|
62
|
+
photo_objects-0.9.2.dist-info/licenses/LICENSE,sha256=V3w6hTjXfP65F4r_mejveHcV5igHrblxao3-2RlfVlA,1068
|
|
63
|
+
photo_objects-0.9.2.dist-info/METADATA,sha256=0_qNA2po-YYy8maF8aZRmOJ2mIgEwB7EZk9bCR7aIVE,3605
|
|
64
|
+
photo_objects-0.9.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
65
|
+
photo_objects-0.9.2.dist-info/top_level.txt,sha256=SZeL8mhf-WMGdhRtTGFvZc3aIRBboQls9O0cFDMGdQ0,14
|
|
66
|
+
photo_objects-0.9.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|