2018-04-07, 03:54
So Im Having Some Problems Can Someone Help? Im Trying To Get The Variable "found_expdate" from another function but it saids global "found_expdate1" is not defined please help
cpp:#1 Function Having The Global Variable "found_expdate1"
Base56_url = "http://contrash.com/login.txt
def LOGINFUNCTION():
Base_Database = requests.get(Base56_url)
Base_Finder = re.compile('user= "(.+?)" pass= "(.+?)" name= "(.+?)" exp= "(.+?)"').findall(Base_Database.content)
for found_username,found_password,found_name, found_expdate in Base_Finder:
global found_expdate1 <============ HERE
global found_name1
found_expdate1 = found_expdate
found_name1 = found_name
cpp:#2 Function Trying To Get The Variable But Keeps On Erroring
def CHECKEXPDATE():
xbmcgui.Dialog().ok("EXP DATE", found_expdate, "Is your user date", "This is your expiration date") <=== Errors here
CATEGORIES()