Commit e4b684d8 authored by Stefy Lanza (nextime / spora )'s avatar Stefy Lanza (nextime / spora )

Merge branch 'patch-2' into 'master'

Delete prompt.txt

See merge request !1
parents f6514b18 238f534f
create a new python project composed by 3 main interacting programs, start to write the first one, a daemon, to be run on a linux server exposed to internet implementing a web dashboard and a RestAPI with authentication, connect to a mysql database. The dashboard offer a csv file or an xlsx file upload and parsing, the upload form will call this file "Fixture", where the fixture data contain the following columns: "Match #","Fighter1 (Township)","Fighter2 (Township)","Venue (Kampala Township)" and a dynamic list of other optional colums that from now on i will refer as "outcome results". the parsing will populate a mysql database, connection data is fetched from a configuration file, with a table where "Match #" is an integer, all the other mandatory data is a varchar255, and all the optional columns will be stored in a separate table with an id reference to the first table row id (autoincrement), a column "result" as varchar255 and containing the file upload optional column name, and a column "value" containing a float number with 2 digits precision. The first table will contain also the following columns that are NULL by default: "start time" ad datetime, "end time" as datetime, "result" as varchar255, and filename as varchar1024, file sha1sum as varchar255, and a fixture id unique for every fixture upload. When uploaded a fixture file, the dashboard should ask to upload a zip file ( large file upload here with progress bar ) for every row inserted in the database from the fixture file, when upload is done calculate the sha1sum of the zip file, and update the database with the file name and sha1sum. Only when the zip file is uploaded and the database update with sha1sum, then the record in the database is "active", you can use a flag in an additional column for it. Also create the SQL script to create the tables of the database.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment