Marthee commited on
Commit
9280ea7
·
verified ·
1 Parent(s): e3556e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -301,6 +301,8 @@ def table():
301
  def stringToRGB():
302
  vv = eval(request.form.get('answers'))
303
  print(vv)
 
 
304
  if vv[0].startswith('http'):
305
  if ( vv[5].startswith('3.2') or vv[5].startswith('3.3') or vv[5].startswith('2.7')) :
306
  print('3.2 section')
@@ -380,7 +382,9 @@ def stringToRGB():
380
 
381
 
382
  if vv[5][2].startswith('2.8') or vv[5][2].startswith('2.6') or vv[5][2].startswith('2.1'):
 
383
  print(f"el mawgood fe vv[0]: {vv[0]}")
 
384
  arr_s = []
385
  dataDocs = []
386
  pls = []
 
301
  def stringToRGB():
302
  vv = eval(request.form.get('answers'))
303
  print(vv)
304
+ if type(vv[0]) == list:
305
+ vv[0] = vv[0][0]
306
  if vv[0].startswith('http'):
307
  if ( vv[5].startswith('3.2') or vv[5].startswith('3.3') or vv[5].startswith('2.7')) :
308
  print('3.2 section')
 
382
 
383
 
384
  if vv[5][2].startswith('2.8') or vv[5][2].startswith('2.6') or vv[5][2].startswith('2.1'):
385
+ vv = eval(request.form.get('answers'))
386
  print(f"el mawgood fe vv[0]: {vv[0]}")
387
+
388
  arr_s = []
389
  dataDocs = []
390
  pls = []