Submission of benchmark data to mydata.blender.org

This commit is contained in:
2018-08-09 17:09:21 +02:00
parent 9ecab3a512
commit da869e022a
7 changed files with 988 additions and 1 deletions

View File

@@ -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):