Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • dev
  • Issue/3006-changeApplicationProfileToMetadataProfile
  • Issue/3057-fix404InAims
  • Issue/3000-fixRemovingOfApInAims
  • Issue/2315-improveErrorCommunication
  • Issue/3000-fixRemovingMetadataProfile
  • Hotfix/2957-styleAndUpgrade
  • Issue/2943-uiFeedback
  • Issue/2599-vue3Migration
  • Issue/xxxx-qualifiedShapeRedo
  • Issue/2779-correctFallback
  • Issue/2759-showMissingField
  • Issue/2703-vocabularyList
  • Issue/xxxx-searchEnhancements
  • Issue/xxxx-rdfEditor
  • Issue/2732-updatedApiClient
  • Issue/2525-fixedFixValues
  • Hotfix/2681-validationErrors
  • Issue/xxxx-excludeModuleAPs
  • v3.0.8
  • v3.0.7
  • v3.0.6
  • v3.0.5
  • v3.0.4
  • v3.0.3
  • v3.0.2
  • v3.0.1
  • v3.0.0
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.1
  • v2.20.0
  • v2.19.6
  • v2.19.5
  • v2.19.4
  • v2.19.3
  • v2.19.2
40 results

tailwind.config.js

Blame
    • Benedikt Heinrichs's avatar
      08d4e3e6
      Breaking: Going towards version 1.0 · 08d4e3e6
      Benedikt Heinrichs authored
      New: Increase the amount of documentation for user guidance
      
      New: Add a page for displaying the graph relationship of the application profile
      
      New: Create Drafts of Application Profile
      
      New: Enhance the information for vocabulary terms
      
      New: Linking of application profiles
      
      New: Add a search page
      
      New: Dealing with Search of Nodes and Classes
      
      Update: Default ordering of application profiles
      
      Fix: Deal with incorrect Edit Modal values
      08d4e3e6
      History
      Breaking: Going towards version 1.0
      Benedikt Heinrichs authored
      New: Increase the amount of documentation for user guidance
      
      New: Add a page for displaying the graph relationship of the application profile
      
      New: Create Drafts of Application Profile
      
      New: Enhance the information for vocabulary terms
      
      New: Linking of application profiles
      
      New: Add a search page
      
      New: Dealing with Search of Nodes and Classes
      
      Update: Default ordering of application profiles
      
      Fix: Deal with incorrect Edit Modal values
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.py 948 B
    import sys
    from datetime import datetime, timezone
    
    from requests import HTTPError
    
    from utils import get_existing_results, save_results
    
    
    def main(analytics_token):
        try:
            # Get existing results
            existing_results = get_existing_results(analytics_token)
    
            h5p_result = existing_results["count_h5p_statements"]
            moodle_result = existing_results["count_moodle_statements"]
    
            print(h5p_result, moodle_result)
    
            # Built results array
            results = [
                {
                    "column1": "h5p",
                    "column2": h5p_result["result"][0]["column2"],
                },
                {"column1": "moodle", "column2": moodle_result["result"][0]["column2"]},
            ]
    
            # Send result to rights engine
            save_results(analytics_token, results)
        except HTTPError as error:
            print(error.response.status_code, error.response.text)
    
    
    if __name__ == "__main__":
        main(sys.argv[1])