This commit is contained in:
2021-01-08 10:27:43 -05:00
parent 8df3ccb66b
commit aa082a6532
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
"""The Replit Python module."""
from .audio import Audio
from .database import db
from .users import User
from .database import db, Database
from .users import get_user, User
# Backwards compatibility.
from .termutils import clear
+5
View File
@@ -69,5 +69,10 @@ class ReplitUser:
return avatar_url
def get_user(username):
"""Creates a new ReplitUser object from a given Repl.it profile name."""
return ReplitUser.from_username(username)
# Syntax suagar.
User = ReplitUser