Skip to content

Commit

Permalink
Replace deprecated use of offset with freq
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew MacDonald <andrew@maccas.net>
  • Loading branch information
amacd31 committed Jul 4, 2018
1 parent 1353418 commit 927a8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phildb/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def write_regular_data(tsdb_file, series):
# We are appending data
elif start_date > last_record_date:
with open(tsdb_file, 'a+b') as writer:
last_record_date = pd.Timestamp(last_record_date, offset=series.index.freq) + 1
last_record_date = pd.Timestamp(last_record_date, freq=series.index.freq) + 1

log_entries = __write_missing(writer, series.index.freq, last_record_date, start_date - 1, log_entries)

Expand Down

0 comments on commit 927a8ed

Please sign in to comment.