piskvorky/sqlitedict

BUG: object not updating at db

instasck opened this issue · 1 comments

code:

class source_descriptor:

    def __init__(self, timestamp):
        self.timestamp = timestamp  # last visit
        self.user_id = None
        self.followers_count = None
        self.aborted = False

visited_sources_record = SqliteDict(Settings.visited_sources_record_location, autocommit=True)
visited_sources_record[source] = source_descriptor(datetime.now())
visited_sources_record[source].followers_count = 5000

image

Stay None.

Y?