openflighthpc / carbon-leaderboard

A tool to compare environmental impact data from different systems
0 stars 0 forks source link

Take ownership of anonymous devices #27

Closed Womblue closed 1 month ago

Womblue commented 1 month ago

This small PR introduces the ability to "claim" a device - if you uploaded a device anonymously, then later create an account and use your token to run carbon send from the same device, your account will be set as the owner for that device.

A device may only be "claimed" if the owner was previously Anonymous, i.e. its user_id field was nil.