בעייה במיפוי שדות תאריך משאילתה

9 views
Skip to first unread message

alon antin

unread,
May 21, 2014, 2:35:32 PM5/21/14
to okness...@googlegroups.com
שלום,

אני מנסה למפות את שדות התאריך לתוצאה שחוזרת ולא מצליח למצוא איך לעשות זאת או תיעוד מתאים, אני מקבל שגיאה
  • "error_message": "an integer is required",

https://github.com/hasadna/Open-Knesset/blob/master/agendas/queries.py - line 8,
results = dict(map(lambda (key,group):(key,map(lambda g:(g[1],float(g[2]),float(g[3]),datetime(g[4])),list(group))),
                       groupby(cursor.fetchall(),key=itemgetter(0))))
    return results

PARTY_QUERY = """
SELECT a.agendaid,
       a.partyid,
       round(coalesce(cast(coalesce(v.totalvotevalue,0.0)/a.totalscore*100.0 as numeric),0.0),2) score,
       round(coalesce(cast(coalesce(v.numvotes,0.0)/a.totalvolume*100.0 as numeric),0.0),2) volume,
       a.start_date, a.end_date

Amir More

unread,
May 21, 2014, 2:47:44 PM5/21/14
to okness...@googlegroups.com
ייתכן שזו שאילתה ישנה. אשב איתך על זה ביום שני


--
You received this message because you are subscribed to the Google Groups "Open Knesset Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oknesset-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages