Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124853
D1059.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
717 B
Subscribers
None
D1059.diff
View Options
diff --git a/requirements-swh.txt b/requirements-swh.txt
--- a/requirements-swh.txt
+++ b/requirements-swh.txt
@@ -1 +1 @@
-swh.core >= 0.0.48
+swh.core >= 0.0.51
diff --git a/swh/scheduler/updater/backend.py b/swh/scheduler/updater/backend.py
--- a/swh/scheduler/updater/backend.py
+++ b/swh/scheduler/updater/backend.py
@@ -72,9 +72,7 @@
q = format_query('select {keys} from swh_cache_read(%s, %s)',
self.cache_read_keys)
cur.execute(q, (timestamp, limit))
- for r in cur.fetchall():
- r['id'] = r['id'].tobytes()
- yield r
+ yield from cur.fetchall()
@db_transaction()
def cache_remove(self, entries, db=None, cur=None):
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 9:51 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216232
Attached To
D1059: swh-scheduler: Remove call to tobytes(), BaseDB now handles conversion.
Event Timeline
Log In to Comment