Philipp Hörist pushed to branch fix-event-storage at gajim / gajim


Commits:
e10973a7 by Philipp Hörist at 2022-11-08T23:47:47+01:00
cq: Don’t redefine var from outa scope

- - - - -


1 changed file:

- gajim/common/storage/events.py


Changes:

=====================================
gajim/common/storage/events.py
=====================================
@@ -130,12 +130,12 @@ def load(self,
             FROM events WHERE account=? AND jid=? {time_order}
             LIMIT ?'''.format(time_order=time_order)
 
-        events: list[events.ApplicationEvent] = []
+        event_list: list[events.ApplicationEvent] = []
         for row in self._con.execute(insert_sql, (contact.account,
                                                   contact.jid,
                                                   timestamp,
                                                   n_lines)).fetchall():
             event_class = EVENT_CLASSES[row.event]
-            events.append(event_class(**row.data,
+            event_list.append(event_class(**row.data,
                                       timestamp=row.timestamp))
-        return events
+        return event_list



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e10973a7be9d3f639768327f2e856861de6e30c9

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/e10973a7be9d3f639768327f2e856861de6e30c9
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to