BUG: object not updating at db
instasck opened this issue · 1 comments
instasck commented
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
Stay None.
Y?
piskvorky commented
See the Beware note in the documentation: https://github.com/RaRe-Technologies/sqlitedict#documentation