Open tjferry14 opened 10 years ago
There is a start of a leaderboard ui. How should we make more exciting??
Upload and download to a server is easy IF you have the URL to a read/write server that we could use.
I don't have a sever unfortunately, can I set it up through a personal website?
Probably ;-) provide a URL and we will see.
with open(__file__) as self:
source_code = self.read()
import requests
url = 'http://tferryapps.com/#contact'
payload = { 'Field1' : 'ccc has a new high score: 1079',
'Field5' : 'ccc@pythonhackers.org',
'Field3' : source_code }
r = requests.post(url, data=payload)
@cclauss The only problems with this is that it doesn't detect wether the file is already made or not, but I can easily fix that. I ran this for a test but it didn't upload to the form.
I tried a few more formulations.... Did any of them succeed in posting to the form?
If so, please paste the posts here.
None succeeded.
Access a leaderboard from the menu. Maybe eventually upload this to an online server and somehow display high scores total from everyone? Maybe using https://github.com/humberry/sftp-client. Just a thought.