mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-30 15:31:11 +00:00
Adjusted logging messages
This commit is contained in:
parent
6667b7ef60
commit
fafd6a1ef8
5
twoot.py
5
twoot.py
|
@ -179,10 +179,11 @@ def update_profile(nitter_url, soup, sql, mast_password):
|
||||||
Update profile on Mastodon
|
Update profile on Mastodon
|
||||||
Check if avatar or banner pictures have changed since last run
|
Check if avatar or banner pictures have changed since last run
|
||||||
If they have, download them and upload them on the Mastodon account profile
|
If they have, download them and upload them on the Mastodon account profile
|
||||||
|
:param nitter_url: url of the Nitter instance that is being used
|
||||||
:param soup: BeautifulSoup object containing the page
|
:param soup: BeautifulSoup object containing the page
|
||||||
:param sql: database connection
|
:param sql: database connection
|
||||||
:param mast_password: <PASSWORD>
|
:param mast_password: <PASSWORD>
|
||||||
:return: mastodon object we had to login to update, None otherwise
|
:return: mastodon object if we had to login to update, None otherwise
|
||||||
"""
|
"""
|
||||||
# Check if TOML option to update profile is set
|
# Check if TOML option to update profile is set
|
||||||
if TOML['options']['update_profile'] is False:
|
if TOML['options']['update_profile'] is False:
|
||||||
|
@ -272,7 +273,7 @@ def update_profile(nitter_url, soup, sql, mast_password):
|
||||||
sql.commit()
|
sql.commit()
|
||||||
logging.debug("Profile updated on database")
|
logging.debug("Profile updated on database")
|
||||||
else:
|
else:
|
||||||
logging.debug("No changes to profile found")
|
logging.info("No changes to profile found")
|
||||||
|
|
||||||
return mastodon
|
return mastodon
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user