1.1 --- a/imiptools/data.py Thu Sep 03 21:50:57 2015 +0200
1.2 +++ b/imiptools/data.py Thu Sep 03 22:51:37 2015 +0200
1.3 @@ -706,11 +706,11 @@
1.4
1.5 # Operations on structure data.
1.6
1.7 -def is_new_object(old_sequence, new_sequence, old_dtstamp, new_dtstamp, partstat_set):
1.8 +def is_new_object(old_sequence, new_sequence, old_dtstamp, new_dtstamp, ignore_dtstamp):
1.9
1.10 """
1.11 Return for the given 'old_sequence' and 'new_sequence', 'old_dtstamp' and
1.12 - 'new_dtstamp', and the 'partstat_set' indication, whether the object
1.13 + 'new_dtstamp', and the 'ignore_dtstamp' indication, whether the object
1.14 providing the new information is really newer than the object providing the
1.15 old information.
1.16 """
1.17 @@ -726,7 +726,7 @@
1.18 is_same_sequence and is_old_dtstamp
1.19 )
1.20
1.21 - return is_same_sequence and partstat_set or not is_old_sequence
1.22 + return is_same_sequence and ignore_dtstamp or not is_old_sequence
1.23
1.24 def get_periods(obj, tzid, end=None, inclusive=False):
1.25