generated from upperlinecode/flaskproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
549 lines (335 loc) · 14.6 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# ---- YOUR APP STARTS HERE ----
# -- Import section --
from flask import Flask
from flask import render_template
from datetime import datetime
# from flask import request
# CHANGE ALL THE PEOPLE NAMES TO ALL THE COUNTRY NAMES !!!!!!!!!!!!!!
# -- Initialization section --
app = Flask(__name__)
# -- Routes section --
@app.route('/')
@app.route('/index')
def index():
return render_template('index.html', time=datetime.now())
@app.route('/asia')
def asia():
return render_template('asia.html', time=datetime.now())
@app.route('/asia/afganistan')
def asiaafganistan():
return render_template('asiaafganistan.html', time=datetime.now())
@app.route('/asia/armenia')
def asiaarmenia():
return render_template('asiaarmenia.html', time=datetime.now())
@app.route('/asia/azerbaijan')
def asiaazerbaijan():
return render_template('asiaazerbaijan.html', time=datetime.now())
@app.route('/asia/bahrain')
def asiabahrain():
return render_template('asiabahrain.html', time=datetime.now())
@app.route('/asia/bangladesh')
def asiabangladesh():
return render_template('asiabangladesh.html', time=datetime.now())
@app.route('/asia/bhutan')
def asiabhutan():
return render_template('asiabhutan.html', time=datetime.now())
@app.route('/asia/brunei')
def asiabrunei():
return render_template('asiabrunei.html', time=datetime.now())
@app.route('/asia/burma')
def asiaburma():
return render_template('asiaburma.html', time=datetime.now())
@app.route('/asia/cambodia')
def asiacambodia():
return render_template('asiacambodia.html', time=datetime.now())
@app.route('/asia/china')
def asiachin():
return render_template('asiachina.html', time=datetime.now())
@app.route('/asia/cyprus')
def asiacyprus():
return render_template('asiacyprus.html', time=datetime.now())
@app.route('/asia/eastTimor')
def asiaeastTimor():
return render_template('asiaeastTimor.html', time=datetime.now())
@app.route('/asia/georgia')
def asiageorgia():
return render_template('asiageorgia.html', time=datetime.now())
@app.route('/asia/india')
def asiaindia():
return render_template('asiaindia.html', time=datetime.now())
@app.route('/asiaindonesia')
def asiaindonesia():
return render_template('asia/indonesia.html', time=datetime.now())
@app.route('/asiairan')
def asiairan():
return render_template('asia/iran.html', time=datetime.now())
@app.route('/asia/iraq')
def asiairaq():
return render_template('asia/iraq.html', time=datetime.now())
@app.route('/asia/israel')
def asiaisrael():
return render_template('asia/israel.html', time=datetime.now())
@app.route('/asia/japan')
def asiajapan():
return render_template('asia/japan.html', time=datetime.now())
@app.route('/asia/jordan')
def asiajordan():
return render_template('asia/jordan.html', time=datetime.now())
@app.route('/asia/kazakhstan')
def asiakazakhstan():
return render_template('asia/kahzakhstan.html', time=datetime.now())
@app.route('/asia/kuwait')
def asiakuwait():
return render_template('asia/kuwait.html', time=datetime.now())
@app.route('/asia/kyrgyzstan')
def asiakyrgyzstan():
return render_template('asia/kyrgyzstan.html', time=datetime.now())
@app.route('/asia/laos')
def asialaos():
return render_template('asia/laos.html', time=datetime.now())
@app.route('/asia/lebanon')
def asialebanon():
return render_template('asia/lebanon.html', time=datetime.now())
@app.route('/asia/malaysia')
def asiamalaysia():
return render_template('asia/malaysia.html', time=datetime.now())
@app.route('/asia/myanmar')
def asiamyanmar():
return render_template('asia/myanmar.html', time=datetime.now())
@app.route('/asia/mongolia')
def asiamongolia():
return render_template('asia/mongolia.html', time=datetime.now())
@app.route('/asia/nepal')
def asianepal():
return render_template('asia/nepal.html', time=datetime.now())
@app.route('/asia/northKorea')
def asiakorea():
return render_template('asia/korea.html', time=datetime.now())
@app.route('/asia/oman')
def asiaoman():
return render_template('asia/oman.html', time=datetime.now())
@app.route('/asia/pakistan')
def asiapakistan():
return render_template('asia/pakistan.html', time=datetime.now())
@app.route('/asia/papuaNewGuinea')
def asiapapuaNewGuinea():
return render_template('asia/papuaNewGuinea.html', time=datetime.now())
@app.route('/asia/philippines')
def asiaphilippines():
return render_template('asia/philippines.html', time=datetime.now())
@app.route('/asia/qatar')
def asiaqatar():
return render_template('asia/qatar.html', time=datetime.now())
@app.route('/asia/russia')
def asiarussia():
return render_template('asia/russia.html', time=datetime.now())
@app.route('/asia/saudiArabia')
def asiasaudiArabia():
return render_template('asia/saudiArabia.html', time=datetime.now())
@app.route('/asia/singapore')
def asiasingapore():
return render_template('asia/singapore.html', time=datetime.now())
@app.route('/asia/southKorea')
def asiasouthKorea():
return render_template('asia/southKorea.html', time=datetime.now())
@app.route('/asia/sriLanka')
def asiasriLanka():
return render_template('asia/sriLanka.html', time=datetime.now())
@app.route('/asia/syria')
def asiasyria():
return render_template('asia/syria.html', time=datetime.now())
@app.route('/asia/tajikstan')
def asiatajikstan():
return render_template('asia/tajikstan.html', time=datetime.now())
@app.route('/asia/thailand')
def asiathailand():
return render_template('asia/thailand.html', time=datetime.now())
@app.route('/asia/turkey')
def asiaturkey():
return render_template('asia/turkey.html', time=datetime.now())
@app.route('/asia/turkmenistan')
def asiaturkmenistan():
return render_template('asia/turkmenistan.html', time=datetime.now())
@app.route('/asia/unitedArabEmirates')
def asiaunitedArabEmirates():
return render_template('asia/unitedArabEmirates.html', time=datetime.now())
@app.route('/asia/uzbekistan')
def asiauzbekistan():
return render_template('asia/uzbekistan.html', time=datetime.now())
@app.route('/asia/vietnam')
def asiavietnam():
return render_template('asia/vietnam.html', time=datetime.now())
@app.route('/asia/yemen')
def asiayemen():
return render_template('asia/yemen.html', time=datetime.now())
#ASIA DEPENDENCIES
@app.route('/asia/taiwan')
def asiataiwan():
return render_template('asia/taiwan.html', time=datetime.now())
@app.route('/asia/hongkong')
def asiahongKong():
return render_template('asia/hongKong.html', time=datetime.now())
@app.route('/asia/macao')
def asiamacao():
return render_template('asia/macao.html', time=datetime.now())
# # LATIN AMERICA
# @app.route('/latinAmerica')
# def latinAmerica():
# return render_template('latinAmerica.html', time=datetime.now())
# @app.route('/latinAmerica/antiguaAndBarbuda')
# def latinAmericaantiguaAndBarbuda():
# return render_template('latinAmerica/antiguaAndBarbuda.html', time=datetime.now())
# @app.route('/latinAmerica/argentina')
# def latinAmericaargentina():
# return render_template('latinAmerica/argentina.html', time=datetime.now())
# @app.route('/latinAmerica/bahamas')
# def latinAmericabahamas():
# return render_template('latinAmerica/bahamas.html', time=datetime.now())
# @app.route('/latinAmerica/barbados')
# def latinAmericabarbados():
# return render_template('latinAmerica/barbados.html', time=datetime.now())
# @app.route('/latinAmerica/belize')
# def latinAmericabelize():
# return render_template('latinAmerica/belize.html', time=datetime.now())
# @app.route('/latinAmerica/bolivia')
# def latinAmericabolivia():
# return render_template('latinAmerica/bolivia.html', time=datetime.now())
# @app.route('/latinAmerica/brazil')
# def latinAmericabrazil():
# return render_template('latinAmerica/brazil.html', time=datetime.now())
# @app.route('/latinAmerica/chile')
# def latinAmericachile():
# return render_template('latinAmerica/chile.html', time=datetime.now())
# @app.route('/latinAmerica/colombia')
# def latinAmericacolombia():
# return render_template('latinAmerica/colombia.html', time=datetime.now())
# @app.route('/latinAmerica/costaRica')
# def latinAmericacostaRica():
# return render_template('latinAmerica/costaRica.html', time=datetime.now())
# @app.route('/latinAmerica/cuba')
# def latinAmericacuba():
# return render_template('latinAmerica/cuba.html', time=datetime.now())
# @app.route('/latinAmerica/dominica')
# def latinAmericadominica():
# return render_template('latinAmerica/dominica.html', time=datetime.now())
# @app.route('/latinAmerica/dominicanRepublic')
# def latinAmericadominicanRepublic():
# return render_template('latinAmerica/dominicanRepublic.html', time=datetime.now())
# @app.route('/latinAmerica/ecuador')
# def latinAmericaecuador():
# return render_template('latinAmerica/ecuador.html', time=datetime.now())
# @app.route('/latinAmerica/elSalvador')
# def latinAmericaelSalvador():
# return render_template('latinAmerica/elSalvador.html', time=datetime.now())
# @app.route('/latinAmerica/grenada')
# def latinAmericagrenada():
# return render_template('latinAmerica/grenada.html', time=datetime.now())
# @app.route('/latinAmerica/guatemala')
# def latinAmericaguatemala():
# return render_template('latinAmerica/guatemala.html', time=datetime.now())
# @app.route('/latinAmerica/guyana')
# def latinAmericaguyana():
# return render_template('latinAmerica/guyana.html', time=datetime.now())
# @app.route('/latinAmerica/haiti')
# def latinAmericahaiti():
# return render_template('latinAmerica/haiti.html', time=datetime.now())
# @app.route('/latinAmerica/honduras')
# def latinAmericahonduras():
# return render_template('latinAmerica/honduras.html', time=datetime.now())
# @app.route('/latinAmerica/jamaica')
# def latinAmericajamaica():
# return render_template('latinAmerica/jamaica.html', time=datetime.now())
# @app.route('/latinAmerica/mexico')
# def latinAmericamexico():
# return render_template('latinAmerica/mexico.html', time=datetime.now())
# @app.route('/latinAmerica/nicaragua')
# def latinAmericanicaragua():
# return render_template('latinAmerica/nicaragua.html', time=datetime.now())
# @app.route('/latinAmerica/saintKitts&Nevis')
# def latinAmericasaintKittsAndNevis():
# return render_template('latinAmerica/saintKitts&Nevis.html', time=datetime.now())
# @app.route('/latinAmerica/saintLucia')
# def latinAmericasaintLucia():
# return render_template('latinAmerica/saintLucia.html', time=datetime.now())
# @app.route('/latinAmerica/stVincent&Grenadines')
# def latinAmericastVincentAndGrenadines():
# return render_template('latinAmerica/stVincent&Grenadines.html', time=datetime.now())
# @app.route('/latinAmerica/suriname')
# def latinAmericasuriname():
# return render_template('latinAmerica/suriname.html', time=datetime.now())
# @app.route('/latinAmerica/trinidadAndTobago')
# def latinAmericatrinidadAndTobago():
# return render_template('latinAmerica/trinidadAndTobago.html', time=datetime.now())
# @app.route('/latinAmerica/panama')
# def latinAmericamexicopanama():
# return render_template('latinAmerica/panama.html', time=datetime.now())
# @app.route('/latinAmerica/paraguay')
# def latinAmericaparaguay():
# return render_template('latinAmerica/paraguay.html', time=datetime.now())
# @app.route('/latinAmerica/peru')
# def latinAmericaperu():
# return render_template('latinAmerica/peru.html', time=datetime.now())
# @app.route('/latinAmerica/uruguay')
# def latinAmericauruguay():
# return render_template('latinAmerica/uruguay.html', time=datetime.now())
# @app.route('/latinAmerica/venezuela')
# def latinAmericavenezuela():
# return render_template('latinAmerica/venezuela.html', time=datetime.now())
# # LATIN AMERICA DEPENDENCIES
# @app.route('/latinAmerica/anguilla')
# def latinAmericaanguilla():
# return render_template('latinAmerica/anguilla.html', time=datetime.now())
# @app.route('/latinAmerica/aruba')
# def latinAmericaaruba():
# return render_template('latinAmerica/aruba.html', time=datetime.now())
# @app.route('/latinAmerica/britishVirginIslands')
# def latinAmericabritishVirginIslands():
# return render_template('latinAmerica/britishVirginIslands.html', time=datetime.now())
# @app.route('/latinAmerica/caribbeanNetherlands')
# def latinAmericacaribbeanNetherlands():
# return render_template('latinAmerica/caribbeanNetherlands.html', time=datetime.now())
# @app.route('/latinAmerica/caymanIslands')
# def latinAmericacaymanIslands():
# return render_template('latinAmerica/puertoRico.html', time=datetime.now())
# @app.route('/latinAmerica/curacao')
# def latinAmericacuracao():
# return render_template('latinAmerica/curacao.html', time=datetime.now())
# @app.route('/latinAmerica/falklandIslands')
# def latinAmericafalklandIslands():
# return render_template('latinAmerica/falklandIslands.html', time=datetime.now())
# @app.route('/latinAmerica/frenchGuiana')
# def latinAmericafrenchGuiana():
# return render_template('latinAmerica/frenchGuiana.html', time=datetime.now())
# @app.route('/latinAmerica/guadeloupe')
# def latinAmericaguadelope():
# return render_template('latinAmerica/guadelope.html', time=datetime.now())
# @app.route('/latinAmerica/martinique')
# def latinAmericamartinique():
# return render_template('latinAmerica/martinique.html', time=datetime.now())
# @app.route('/latinAmerica/montserrat')
# def latinAmericamontserrat():
# return render_template('latinAmerica/montserrat.html', time=datetime.now())
# @app.route('/latinAmerica/sintMaarten')
# def latinAmericasintMaarten():
# return render_template('latinAmerica/sintMaarten.html', time=datetime.now())
# @app.route('/latinAmerica/turksAndCaicos')
# def latinAmericaturksAndCaicos():
# return render_template('latinAmerica/turksAndCaicos.html', time=datetime.now())
# @app.route('/latinAmerica/USVirginIslands')
# def latinAmericaUSVirginIslands():
# return render_template('latinAmerica/USVirginIslands.html', time=datetime.now())
# @app.route('/latinAmerica/puertoRico')
# def latinAmericapuertoRico():
# return render_template('latinAmerica/puertoRico.html', time=datetime.now())
# # EUROPEAN COUNTRIES
# # https://www.worldometers.info/geography/how-many-countries-in-europe/
# # DEPENDENCIES IN EUROPE
# # AFRICAN COUNTIRES
# # https://www.worldometers.info/geography/how-many-countries-in-africa/
# # AFRICAN IN EUROPE
# # OCEANA COUNTRIES
# # https://www.worldometers.info/geography/how-many-countries-in-oceania/
# # DEPENDENCIES OCEANA
# # NORTH AMERICA
# # https://www.worldometers.info/geography/how-many-countries-in-northern-america/
# # NORTH AMERICA DEPENDENCIES