Submission of benchmark data to mydata.blender.org
This commit is contained in:
@@ -837,7 +837,18 @@ class BENCHMARK_OT_share(bpy.types.Operator):
|
||||
bl_idname = "benchmark.share"
|
||||
bl_label = "Share Benchmark Result"
|
||||
|
||||
def invoke(self, context, event):
|
||||
def execute(self, context):
|
||||
import submission
|
||||
|
||||
make_buttons_default()
|
||||
print('Submitting benchmark')
|
||||
try:
|
||||
submission.submit_benchmark(global_result_dict)
|
||||
except Exception as ex:
|
||||
self.report({'ERROR'}, f'Error submitting results:\n{str(ex)[:100]}')
|
||||
return {'CANCELLED'}
|
||||
print('Submission done')
|
||||
make_buttons_green()
|
||||
return {'FINISHED'}
|
||||
|
||||
class BENCHMARK_OT_opendata_link(bpy.types.Operator):
|
||||
|
Reference in New Issue
Block a user