Handle Char boolean from Jeeves, and updated docstrings
This commit is contained in:
parent
e8acc959d8
commit
0fdc029153
2 changed files with 5 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ import logging
|
||||||
|
|
||||||
|
|
||||||
class JvsQuery():
|
class JvsQuery():
|
||||||
"""docstring for JvsQuery"""
|
"""JvsQuery based on http://pymssql.org/en/stable/ """
|
||||||
def __init__(self, settings):
|
def __init__(self, settings):
|
||||||
super(JvsQuery, self).__init__()
|
super(JvsQuery, self).__init__()
|
||||||
self.settings = settings
|
self.settings = settings
|
||||||
|
|
@ -100,7 +100,8 @@ class JvsQuery():
|
||||||
created_dt='2000-01-01 00:00:00.000', limit=None):
|
created_dt='2000-01-01 00:00:00.000', limit=None):
|
||||||
query = (
|
query = (
|
||||||
"""SELECT kus.FtgNr, BetKod, kus.kundbetalarenr, kus.RowUpdatedBy, kus.RowUpdatedDt,
|
"""SELECT kus.FtgNr, BetKod, kus.kundbetalarenr, kus.RowUpdatedBy, kus.RowUpdatedDt,
|
||||||
kus.RowCreatedBy, kus.RowCreatedDt, kus.ForetagKod, kus.MakDateTime, kus.Makulerad,
|
kus.RowCreatedBy, kus.RowCreatedDt, kus.ForetagKod, kus.MakDateTime,
|
||||||
|
CAST(kus.Makulerad AS int) as Makulerad,
|
||||||
x1k.KundKategoriKod, x1k.KundKatBeskr,
|
x1k.KundKategoriKod, x1k.KundKatBeskr,
|
||||||
x1kk.Kundklass, x1kk.KundKlassBeskr,
|
x1kk.Kundklass, x1kk.KundKlassBeskr,
|
||||||
salj.Saljare, salj.SaljareNamn,
|
salj.Saljare, salj.SaljareNamn,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@ import threading
|
||||||
|
|
||||||
|
|
||||||
class TaskThread(threading.Thread):
|
class TaskThread(threading.Thread):
|
||||||
"""Thread that executes a task every N seconds"""
|
"""Thread that executes a task every N seconds
|
||||||
|
http://code.activestate.com/recipes/65222/ """
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
threading.Thread.__init__(self)
|
threading.Thread.__init__(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue