diff --git "a/app.py" "b/app.py" --- "a/app.py" +++ "b/app.py" @@ -44,16 +44,14 @@ kt = "1" if first_button: click = 1 st.html( - "

Oánh đề à?
Donate me: https://paypal.me/topvl

" - + "" + "

Oánh đề à?
Thử đoán xem có trúng không nhé?

" ) kt = "1" elif second_button: click = 1 st.write("Oánh lô nhé") st.html( - "

Dự đoán lô đây!!!
Donate me: https://paypal.me/topvl

" - + "" + "

Hôm nay chọn chơi lô à?
Thử đoán xem có trúng không nhé?

" ) kt = "2" path = os.getcwd() @@ -101,13 +99,23 @@ if click == 1: lx += 1 fo.close() bar.finish() + rs = [] + i = 366 + while i > 0 : + rs.append(results[len(results)-i]) + i = i - 1 + + results = rs + + randFix = random.randint(0,999999) #st.write(str(len(rolldate))) #st.write(str(len(results))) st.write("Kỳ quay cuối cùng ngày: "+maxdate+" - kết quả: "+str(lastresult)) st.write("Kết thúc tổng hợp dữ liệu") st.write("Bắt đầu quá trình dự đoán...") - ws = open(path+"/xsmb_db.txt","w+") + loadrs = path+"/xsmb_"+str(randFix)+".txt" + ws = open(loadrs,"w+") if kt == "1": i = 0 ws.write("special\n") @@ -133,7 +141,7 @@ if click == 1: ws.close() st.write("Lọc dữ liệu hoàn thành") - data = np.loadtxt(path+"/xsmb_db.txt",delimiter="\t",dtype="int",skiprows=1) + data = np.loadtxt(loadrs,delimiter="\t",dtype="int",skiprows=1) #st.write(data) X = [] #nếu là đề, chỉ lấy danh sách kết quả đề @@ -229,5 +237,12 @@ if click == 1: #st.write(countTot[rs]) st.write("Kết quả dự đoán lần "+str(getRS.index(rs)+1)+": "+str(results[rs])+"") + os.system("rm "+loadrs) + + +st.html( + "

Này này, chơi mà trúng là phải chia lộc đấy nhé, ghi log hết rồi nhé, nuốt hết là ko trôi đâu.
Chia lộc: https://paypal.me/topvl

" + + "" +)