Permalink
Browse files

Prevent data from being blanked out by subsequent queries.

  • Loading branch information...
wagnerrp committed Jul 2, 2012
1 parent 6e7725d commit 0c4df4518428b27967f7f89e4600a18d46347b2d
Showing with 6 additions and 1 deletion.
  1. +1 −1 setup.py
  2. +1 −0 tmdb3/tmdb_api.py
  3. +4 −0 tmdb3/util.py
View
@@ -4,7 +4,7 @@
setup(
name='tmdb3',
version='0.6.4',
version='0.6.5',
description='TheMovieDB.org APIv3 interface',
long_description="Object-oriented interface to TheMovieDB.org's v3 API.",
packages=['tmdb3']
View
@@ -47,6 +47,7 @@
# 0.6.2 Add similar movie search for Movie objects
# 0.6.3 Add Studio search
# 0.6.4 Add Genre list and associated Movie search
# 0.6.5 Prevent data from being blanked out by subsequent queries
from request import set_key, Request
from util import Datapoint, Datalist, Datadict, Element, NameRepr, SearchRepr
View
@@ -84,6 +84,10 @@ def apply(self, data, set_nones=True):
((data[k] is not None) if callable(self.func) else True):
# argument received data, populate it
setattr(self.inst, v, data[k])
elif v in self.inst._data:
# argument did not receive data, but Element already contains
# some value, so skip this
continue
elif set_nones:
# argument did not receive data, so fill it with None
# to indicate such and prevent a repeat scan

0 comments on commit 0c4df45

Please sign in to comment.