Explorar el Código

fix: resolved conflicts in database.py

version-14
Shariq Ansari hace 3 años
committed by GitHub
padre
commit
5c6c9bb5c4
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 0 adiciones y 8 borrados
  1. +0
    -8
      frappe/database/database.py

+ 0
- 8
frappe/database/database.py Ver fichero

@@ -116,19 +116,11 @@ class Database(object):

"""
query = str(query)
<<<<<<< HEAD
if not run:
return query
=======

<<<<<<< HEAD
# remove \n \t from start of query and replace them with space anywhere in middle
query = re.sub(r'\s', ' ', query).lstrip()
>>>>>>> ac5effc7dd (fix: remove tab \t and newlines \n from start of query and remove from middle)
=======
# remove \n \t from start and end of query
query = re.sub(r'^\s*|\s*$', '', query)
>>>>>>> 7bb172365f (fix: only remove \n\t from start and end)

if re.search(r'ifnull\(', query, flags=re.IGNORECASE):
# replaces ifnull in query with coalesce


Cargando…
Cancelar
Guardar