mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-17 13:58:11 +00:00
Initialize url in db as None
This commit is contained in:
parent
b883862b36
commit
be1c1c7db7
2
twoot.py
2
twoot.py
|
@ -222,7 +222,7 @@ def update_profile(nitter_url, soup, sql, mast_password):
|
||||||
logging.info('banner image changed on twitter profile')
|
logging.info('banner image changed on twitter profile')
|
||||||
else:
|
else:
|
||||||
# Mastodon user not found in database. Add new record
|
# Mastodon user not found in database. Add new record
|
||||||
db.execute("INSERT INTO profiles (mastodon_instance, mastodon_account, avatar_url, banner_url) VALUES (?, ?, ?, ?)", (TOML['config']['mastodon_instance'], TOML['config']['mastodon_user'], "", ""))
|
db.execute("INSERT INTO profiles (mastodon_instance, mastodon_account, avatar_url, banner_url) VALUES (?, ?, ?, ?)", (TOML['config']['mastodon_instance'], TOML['config']['mastodon_user'], None, None))
|
||||||
sql.commit()
|
sql.commit()
|
||||||
changed = True
|
changed = True
|
||||||
logging.debug("added new profile to database")
|
logging.debug("added new profile to database")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user