Skip to content

Instantly share code, notes, and snippets.

@hkamran80
Created May 4, 2018 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hkamran80/48560245bf111d7c9a86e518cbcf9cf1 to your computer and use it in GitHub Desktop.
Save hkamran80/48560245bf111d7c9a86e518cbcf9cf1 to your computer and use it in GitHub Desktop.
import sl
from getpass import getpass
schoolloop_subdomain = input("Subdomain: ")
schoolloop_username = input("Username: ")
schoolloop_password = getpass()
s2 = login(schoolloop_subdomain, schoolloop_username, schoolloop_password)
grades = sl.get_grades()
for g in grades:
if str(g[3]) == "No grades published by teacher":
g_letter = ""
else:
g_letter = " (" + str(g[4]) + ")"
print(str(g[0]) + "°: " + str(g[1]) + " (" + str(g[2]) + "): " + str(g[3]) + g_letter)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment