fut icon indicating copy to clipboard operation
fut copied to clipboard

Create database_read.py

Open HKev68 opened this issue 9 years ago • 5 comments

Database_read build the fut players database and enables you to find the name of player when you know its id and vice-versa

HKev68 avatar Oct 01 '16 10:10 HKev68

I like the idea but i think it should be much simple (read json directly, not convert to html then parse, convert unicode) and merged into core as new function. What's the point of creating new file?

oczkers avatar Oct 03 '16 08:10 oczkers

I created a new file as I did not want to mess up all your work when I created this library. I also thought that it will be way faster if I only parse the json file once, and store the result in a structure than parsing for each request

HKev68 avatar Oct 04 '16 07:10 HKev68

I solve this problem, importing the JSON content into my database. When I need find some player assetId, I find then at my database.

@oczkers do you have some better idea ?

converge avatar Jan 10 '17 00:01 converge

Looks like i've started parsing json databse but totally forget about this :-)

TODO:

  • [x] import json
  • [x] parse and arrange in nice dictionary/object for easy searching like in HKev68 code

oczkers avatar Jan 10 '17 08:01 oczkers

Players data is parsed now (https://github.com/oczkers/fut/commit/f1ceb1cd26804619fbdf66fae0ca22f7a20ce8e3).

TODO:

  • [ ] objects, we need objects (player, nationality, team etc.)
  • [ ] add database search abilities

oczkers avatar Apr 28 '17 14:04 oczkers