From 0fdc0291532889d0177fcab72d3d581dc1cbf246 Mon Sep 17 00:00:00 2001 From: Marcus Lindvall Date: Thu, 11 Oct 2018 14:55:29 +0200 Subject: [PATCH] Handle Char boolean from Jeeves, and updated docstrings --- pyjeeves/jvsquery.py | 5 +++-- pyjeeves/utils.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pyjeeves/jvsquery.py b/pyjeeves/jvsquery.py index f866a31..1d90122 100644 --- a/pyjeeves/jvsquery.py +++ b/pyjeeves/jvsquery.py @@ -11,7 +11,7 @@ import logging class JvsQuery(): - """docstring for JvsQuery""" + """JvsQuery based on http://pymssql.org/en/stable/ """ def __init__(self, settings): super(JvsQuery, self).__init__() self.settings = settings @@ -100,7 +100,8 @@ class JvsQuery(): created_dt='2000-01-01 00:00:00.000', limit=None): query = ( """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, x1kk.Kundklass, x1kk.KundKlassBeskr, salj.Saljare, salj.SaljareNamn, diff --git a/pyjeeves/utils.py b/pyjeeves/utils.py index c4e3455..ad23f43 100644 --- a/pyjeeves/utils.py +++ b/pyjeeves/utils.py @@ -9,7 +9,8 @@ import threading 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): threading.Thread.__init__(self)