Skip to content

Commit

Permalink
Update (#80)
Browse files Browse the repository at this point in the history
* .

* Update bot.py

* Update bot.py

* 1

* 1

* Update pformat.py

* `

* Update page.py

* Temporary Accounts
  • Loading branch information
MrIbrahem authored Dec 8, 2024
1 parent 44f218d commit 234e56d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions page.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
bot_api.User_tables["wikipedia"] = User_tables
catdepth_new.User_tables["wikipedia"] = User_tables
# ---
super_page.User_tables["wikisource"] = User_tables
bot_api.User_tables["wikisource"] = User_tables
catdepth_new.User_tables["wikisource"] = User_tables
# ---
super_page.User_tables["wikidata"] = User_tables
bot_api.User_tables["wikidata"] = User_tables
catdepth_new.User_tables["wikidata"] = User_tables
Expand Down
2 changes: 1 addition & 1 deletion super/login_bots/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def loged_in(self) -> bool:
# ---
# print(json1)
# ---
if "anon" in userinfo:
if "anon" in userinfo or "temp" in userinfo:
return False
# ---
self.username_in = userinfo.get("name", "")
Expand Down
2 changes: 1 addition & 1 deletion super/login_bots/mwclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def handle_api_result(self, info, kwargs=None, sleeper=None):
else:
self.blocked = False
self.hasmsg = 'messages' in userinfo
self.logged_in = 'anon' not in userinfo
self.logged_in = 'anon' not in userinfo and 'temp' not in userinfo
if 'warnings' in info:
for module, warning in info['warnings'].items():
if '*' in warning:
Expand Down

0 comments on commit 234e56d

Please sign in to comment.