0 is not a valid database ID.
There will never be a workunit with ID=0.
-- David

On 05-Aug-2012 3:53 PM, Jai wrote:
>   hi,
>
> I am using BOINC python API in the server to do some databse operations, but 
> got an exception. I think it is a bug, I ran python like the following:
>
>      >>> sys.path.insert(0,'/home/boinc/projects/cppmce/py/Boinc')
>      >>> import database
>      >>> database.Results.find(workunitid=0)
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File "/home/boinc/projects/cppmce/py/Boinc/db_base.py", line 294, in find
>      kwargs = self.dict2database_fields(kwargs)
>    File "/home/boinc/projects/cppmce/py/Boinc/db_base.py", line 394, in 
> dict2database_fields
>      raise ValueError('Invalid key(s): %s'%indict)
> ValueError: Invalid key(s): {'workunitid': 0}
>
> Cheers,
>
> Jie
>
>
>
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.
>
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to