Explorar el Código

minor: direction

svetlana hace 3 años
padre
commit
2a20b348b4
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/app.py

+ 2 - 1
app/app.py

@@ -304,7 +304,8 @@ async def getUserCDR(user,
                      offset=None,
                      order='ASC'):
   _q = f'''SELECT * FROM cdr AS c INNER JOIN (SELECT linkedid FROM cdr WHERE'''
-  direction=direction.lower()
+  if direction:
+    direction=direction.lower()
   if direction in ('in', True, '1', 'incoming', 'inbound'):
     direction = 'inbound'
     _q += f''' dst="{user}"'''