Moibe commited on
Commit
c2f4f33
Β·
1 Parent(s): 3ec8405

Types fixed

Browse files
Files changed (3) hide show
  1. README.md +1 -2
  2. avaimet.py +1 -0
  3. main.py +2 -0
README.md CHANGED
@@ -2,9 +2,8 @@
2
  title: Sulku-Docker
3
  emoji: 🌊🐳
4
  colorFrom: blue
5
- colorTo: red
6
  sdk: docker
7
- app_file: aplicacion.py
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
2
  title: Sulku-Docker
3
  emoji: 🌊🐳
4
  colorFrom: blue
5
+ colorTo: pink
6
  sdk: docker
 
7
  ---
8
 
9
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
avaimet.py CHANGED
@@ -70,6 +70,7 @@ def restaToken(sftp, caja, tokens, work):
70
  # Escribir el contenido final en el archivo
71
  archivo.write(contenido_final)
72
 
 
73
  return contenido_final
74
 
75
  def cierraConexion(ssh, sftp ):
 
70
  # Escribir el contenido final en el archivo
71
  archivo.write(contenido_final)
72
 
73
+ contenido_final = int(contenido_final)
74
  return contenido_final
75
 
76
  def cierraConexion(ssh, sftp ):
main.py CHANGED
@@ -11,9 +11,11 @@ def hello():
11
  @app.get("/getTokens/{userfile}")
12
  def getTokens(userfile: str):
13
  tokens = funciones.getAccess(userfile)
 
14
  return tokens
15
 
16
  @app.get("/debitTokens/{userfile}/{work}")
17
  def debitTokens(userfile: str, work: str):
18
  tokens = funciones.debitTokens(userfile,work)
 
19
  return tokens
 
11
  @app.get("/getTokens/{userfile}")
12
  def getTokens(userfile: str):
13
  tokens = funciones.getAccess(userfile)
14
+ print("Tipo de resultado:", type(tokens))
15
  return tokens
16
 
17
  @app.get("/debitTokens/{userfile}/{work}")
18
  def debitTokens(userfile: str, work: str):
19
  tokens = funciones.debitTokens(userfile,work)
20
+ print("Tipo de resultado:", type(tokens))
21
  return tokens