Skip to content

Commit

Permalink
update deprecated pandas method in id_import_new_allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Jul 17, 2024
1 parent 5740a37 commit d9291c8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def handle(self, *args, **options):
and lab_path in i['path'] and i['group_name'] == lab_name
]
if not lab_usage_entries:
logger.info("No starfish usage data found for", lab_name, lab_server, lab_path)
logger.info("No starfish usage data found for %s %s %s", lab_name, lab_server, lab_path)
continue

allocation, created = project.allocation_set.get_or_create(
Expand All @@ -106,16 +106,16 @@ def handle(self, *args, **options):
value=lab_path
)
print(f'allocation created: {allocation_str}')
logger.info('allocation created: %s', allocation_str)
allocation.save()
command_report['allocations_added'].append(allocation_str)
row = {
row = pd.DataFrame({
'project_title': lab_name,
'server': lab_server,
'path': lab_path,
'date': datetime.now()
}

added_allocations_df = added_allocations_df.append(row, ignore_index=True)
}, index=[0])
added_allocations_df = pd.concat([added_allocations_df, pd.DataFrame(row)], ignore_index=True)
else:
command_report['allocations_existing'].append(allocation_str)
continue
Expand Down

0 comments on commit d9291c8

Please sign in to comment.