Spaces:
Sleeping
Sleeping
Moibe
commited on
Commit
·
1f4d4dd
1
Parent(s):
b783901
Text specs
Browse files- avaimet.py +3 -4
avaimet.py
CHANGED
|
@@ -53,11 +53,10 @@ def restaToken(sftp, caja, tokens, work):
|
|
| 53 |
#Aplica reglas de cobro de tokens.
|
| 54 |
if work == 'picswap':
|
| 55 |
cuantos = 1
|
| 56 |
-
print(f"Work: {work},
|
| 57 |
time.sleep(1)
|
| 58 |
else:
|
| 59 |
-
print("
|
| 60 |
-
|
| 61 |
|
| 62 |
# Agregar el texto "- Revisado." al string
|
| 63 |
contenido_final = int(tokens) - cuantos
|
|
@@ -76,4 +75,4 @@ def restaToken(sftp, caja, tokens, work):
|
|
| 76 |
def cierraConexion(ssh, sftp ):
|
| 77 |
|
| 78 |
sftp.close()
|
| 79 |
-
ssh.close()
|
|
|
|
| 53 |
#Aplica reglas de cobro de tokens.
|
| 54 |
if work == 'picswap':
|
| 55 |
cuantos = 1
|
| 56 |
+
print(f"Work: {work}, tokens cost: {cuantos}")
|
| 57 |
time.sleep(1)
|
| 58 |
else:
|
| 59 |
+
print("The work specified doesn't exists.")
|
|
|
|
| 60 |
|
| 61 |
# Agregar el texto "- Revisado." al string
|
| 62 |
contenido_final = int(tokens) - cuantos
|
|
|
|
| 75 |
def cierraConexion(ssh, sftp ):
|
| 76 |
|
| 77 |
sftp.close()
|
| 78 |
+
ssh.close()
|