Omnibus commited on
Commit
5f6ad40
1 Parent(s): cb5d6c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -58,10 +58,11 @@ $body
58
  """
59
 
60
  def make_filename(inp):
61
- if len(inp)<=20:
62
  first_name=inp
63
  else:
64
- first_name=inp[:20]
 
65
  print(first_name)
66
  last_name=random.randint(1,1111111111)
67
  filename=first_name+str(last_name)
 
58
  """
59
 
60
  def make_filename(inp):
61
+ if len(inp)<=30:
62
  first_name=inp
63
  else:
64
+ first_name=inp[:30]
65
+ first_name=first_name.replace(" ","_")
66
  print(first_name)
67
  last_name=random.randint(1,1111111111)
68
  filename=first_name+str(last_name)