usercount
usercount copied to clipboard
ValueError: substring not found
Hi, I've a got a "locale" problem between Mastodon and usercount bot. When i put in .env.production file of Mastodon : DEFAULT_LOCALE=fr then usercount stop working and give an error :
Traceback (most recent call last):
File "usercount.py", line 98, in
its caused by these lines: Get the number of users, removing commas current_id = int( get_between(pagecontent, "Home to", "users").replace(",", ""))
Get the number of toots, removing commas num_toots = int (get_between(pagecontent, "Who authored", "statuses").replace(",", ""))
try to replace Home to, users, Who authored and statuses .