Compare commits
2 Commits
b5aa267090
...
6bedeef48a
Author | SHA1 | Date | |
---|---|---|---|
6bedeef48a | |||
b161254363 |
3
Pipfile
@ -14,3 +14,6 @@ sqlalchemy = "*"
|
|||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.8"
|
python_version = "3.8"
|
||||||
|
|
||||||
|
[scripts]
|
||||||
|
clean = "rm data/ki.sqlite"
|
||||||
|
@ -19,3 +19,8 @@ flask run
|
|||||||
```
|
```
|
||||||
|
|
||||||
http://localhost:5000/
|
http://localhost:5000/
|
||||||
|
|
||||||
|
### Quellen
|
||||||
|
|
||||||
|
* [`./data/iso_639_1.csv`](https://de.wikipedia.org/wiki/Liste_der_ISO-639-1-Codes)
|
||||||
|
* [`./data/imgs/flags`](https://github.com/gosquared/flags)
|
||||||
|
2
app.py
@ -10,7 +10,7 @@ load_dotenv(find_dotenv())
|
|||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI")
|
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv("SQLALCHEMY_DATABASE_URI")
|
||||||
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
|
||||||
app.config["KI_DATA_PATH"] = os.path.dirname(__file__) + "/data"
|
app.config["KI_DATA_DIR"] = os.path.dirname(__file__) + "/data"
|
||||||
db = SQLAlchemy(app)
|
db = SQLAlchemy(app)
|
||||||
migrate = Migrate(app, db)
|
migrate = Migrate(app, db)
|
||||||
|
|
||||||
|
3
data/.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
*
|
ki.sqlite
|
||||||
!/.gitignore
|
|
||||||
|
BIN
data/imgs/flags/_abkhazia.png
Normal file
After Width: | Height: | Size: 977 B |
BIN
data/imgs/flags/_basque-country.png
Normal file
After Width: | Height: | Size: 560 B |
BIN
data/imgs/flags/_british-antarctic-territory.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
data/imgs/flags/_commonwealth.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
data/imgs/flags/_england.png
Normal file
After Width: | Height: | Size: 171 B |
BIN
data/imgs/flags/_gosquared.png
Normal file
After Width: | Height: | Size: 614 B |
BIN
data/imgs/flags/_kosovo.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/imgs/flags/_mars.png
Normal file
After Width: | Height: | Size: 181 B |
BIN
data/imgs/flags/_nagorno-karabakh.png
Normal file
After Width: | Height: | Size: 212 B |
BIN
data/imgs/flags/_nato.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/imgs/flags/_northern-cyprus.png
Normal file
After Width: | Height: | Size: 583 B |
BIN
data/imgs/flags/_olympics.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/imgs/flags/_red-cross.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
data/imgs/flags/_scotland.png
Normal file
After Width: | Height: | Size: 541 B |
BIN
data/imgs/flags/_somaliland.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/imgs/flags/_south-ossetia.png
Normal file
After Width: | Height: | Size: 168 B |
BIN
data/imgs/flags/_united-nations.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/imgs/flags/_wales.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
data/imgs/flags/ad.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/imgs/flags/ae.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
data/imgs/flags/af.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
data/imgs/flags/ag.png
Normal file
After Width: | Height: | Size: 862 B |
BIN
data/imgs/flags/ai.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
data/imgs/flags/al.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/imgs/flags/am.png
Normal file
After Width: | Height: | Size: 169 B |
BIN
data/imgs/flags/an.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
data/imgs/flags/ao.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
data/imgs/flags/aq.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
data/imgs/flags/ar.png
Normal file
After Width: | Height: | Size: 617 B |
BIN
data/imgs/flags/as.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/imgs/flags/at.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
data/imgs/flags/au.png
Normal file
After Width: | Height: | Size: 983 B |
BIN
data/imgs/flags/aw.png
Normal file
After Width: | Height: | Size: 639 B |
BIN
data/imgs/flags/ax.png
Normal file
After Width: | Height: | Size: 206 B |
BIN
data/imgs/flags/az.png
Normal file
After Width: | Height: | Size: 755 B |
BIN
data/imgs/flags/ba.png
Normal file
After Width: | Height: | Size: 734 B |
BIN
data/imgs/flags/bb.png
Normal file
After Width: | Height: | Size: 444 B |
BIN
data/imgs/flags/bd.png
Normal file
After Width: | Height: | Size: 434 B |
BIN
data/imgs/flags/be.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
data/imgs/flags/bf.png
Normal file
After Width: | Height: | Size: 430 B |
BIN
data/imgs/flags/bg.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
data/imgs/flags/bh.png
Normal file
After Width: | Height: | Size: 340 B |
BIN
data/imgs/flags/bi.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
data/imgs/flags/bj.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
data/imgs/flags/bl.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
data/imgs/flags/bm.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/imgs/flags/bn.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
data/imgs/flags/bo.png
Normal file
After Width: | Height: | Size: 686 B |
BIN
data/imgs/flags/br.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
data/imgs/flags/bs.png
Normal file
After Width: | Height: | Size: 467 B |
BIN
data/imgs/flags/bt.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
data/imgs/flags/bw.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
data/imgs/flags/by.png
Normal file
After Width: | Height: | Size: 595 B |
BIN
data/imgs/flags/bz.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
data/imgs/flags/ca.png
Normal file
After Width: | Height: | Size: 486 B |
BIN
data/imgs/flags/cc.png
Normal file
After Width: | Height: | Size: 1004 B |
BIN
data/imgs/flags/cd.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/imgs/flags/cf.png
Normal file
After Width: | Height: | Size: 377 B |
BIN
data/imgs/flags/cg.png
Normal file
After Width: | Height: | Size: 323 B |
BIN
data/imgs/flags/ch.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
data/imgs/flags/ci.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
data/imgs/flags/ck.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/imgs/flags/cl.png
Normal file
After Width: | Height: | Size: 309 B |
BIN
data/imgs/flags/cm.png
Normal file
After Width: | Height: | Size: 367 B |
BIN
data/imgs/flags/cn.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
data/imgs/flags/co.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
data/imgs/flags/cr.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
data/imgs/flags/ct.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
data/imgs/flags/cu.png
Normal file
After Width: | Height: | Size: 605 B |
BIN
data/imgs/flags/cv.png
Normal file
After Width: | Height: | Size: 360 B |
BIN
data/imgs/flags/cw.png
Normal file
After Width: | Height: | Size: 441 B |
BIN
data/imgs/flags/cx.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
data/imgs/flags/cy.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
data/imgs/flags/cz.png
Normal file
After Width: | Height: | Size: 369 B |
BIN
data/imgs/flags/de.png
Normal file
After Width: | Height: | Size: 168 B |
BIN
data/imgs/flags/dj.png
Normal file
After Width: | Height: | Size: 452 B |
BIN
data/imgs/flags/dk.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
data/imgs/flags/dm.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/imgs/flags/do.png
Normal file
After Width: | Height: | Size: 588 B |
BIN
data/imgs/flags/dz.png
Normal file
After Width: | Height: | Size: 592 B |
BIN
data/imgs/flags/ec.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/imgs/flags/ee.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
data/imgs/flags/eg.png
Normal file
After Width: | Height: | Size: 634 B |
BIN
data/imgs/flags/eh.png
Normal file
After Width: | Height: | Size: 577 B |
BIN
data/imgs/flags/er.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
data/imgs/flags/es.png
Normal file
After Width: | Height: | Size: 996 B |
BIN
data/imgs/flags/et.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
data/imgs/flags/eu.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
data/imgs/flags/fi.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
data/imgs/flags/fj.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
data/imgs/flags/fk.png
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
data/imgs/flags/fm.png
Normal file
After Width: | Height: | Size: 444 B |
BIN
data/imgs/flags/fo.png
Normal file
After Width: | Height: | Size: 197 B |
BIN
data/imgs/flags/fr.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
data/imgs/flags/ga.png
Normal file
After Width: | Height: | Size: 180 B |
BIN
data/imgs/flags/gb.png
Normal file
After Width: | Height: | Size: 680 B |