Commit da557580 authored by Dimitri Podborski's avatar Dimitri Podborski
Browse files

cosmetics

parent cf6c5c64
...@@ -4,13 +4,13 @@ This is the interface to MPEG Document Management System (mdms). ...@@ -4,13 +4,13 @@ This is the interface to MPEG Document Management System (mdms).
It requests the data from MDMS and parses the output HTML It requests the data from MDMS and parses the output HTML
''' '''
from urllib.parse import urljoin, parse_qs, urlparse
import os import os
import requests import requests
import bs4 import bs4
import re
from urllib.parse import urljoin, parse_qs, urlparse
from datetime import datetime from datetime import datetime
from enum import Enum, unique from enum import Enum, unique
import re
BASE_URL = 'https://dms.mpeg.expert/doc_end_user/' BASE_URL = 'https://dms.mpeg.expert/doc_end_user/'
MEETINGS_URL = urljoin(BASE_URL, 'all_meeting.php') MEETINGS_URL = urljoin(BASE_URL, 'all_meeting.php')
...@@ -443,4 +443,5 @@ def find_documents( title = '', ...@@ -443,4 +443,5 @@ def find_documents( title = '',
Find documents using the search URL. Find documents using the search URL.
TODO: Fire a POST request to SEARCH_URL and parse the result TODO: Fire a POST request to SEARCH_URL and parse the result
''' '''
return None return None
\ No newline at end of file
\ No newline at end of file
...@@ -27,8 +27,8 @@ import json ...@@ -27,8 +27,8 @@ import json
import csv import csv
import os import os
import sys import sys
from automation import gitlab, mdms, helpers
from datetime import datetime from datetime import datetime
from automation import gitlab, mdms, helpers
__version__ = '1.3' __version__ = '1.3'
...@@ -190,7 +190,7 @@ def close_issues(table_entries, test): ...@@ -190,7 +190,7 @@ def close_issues(table_entries, test):
continue continue
issues = gitlab.get_issues(project_id) issues = gitlab.get_issues(project_id)
issue_with_title, issue_with_meta, meta_last_doc_version = helpers.find_issue(issues, document) issue_with_title, issue_with_meta, _meta_last_doc_version = helpers.find_issue(issues, document)
if issue_with_meta is None and issue_with_title is None: if issue_with_meta is None and issue_with_title is None:
print(' * No issue to close for:', document['document'], 'in', entry['project']['url']) print(' * No issue to close for:', document['document'], 'in', entry['project']['url'])
if issue_with_meta is not None: if issue_with_meta is not None:
...@@ -222,7 +222,7 @@ def create_output_doc(table_entries, output_path, template_path): ...@@ -222,7 +222,7 @@ def create_output_doc(table_entries, output_path, template_path):
continue continue
project = entry['project'] project = entry['project']
issues = gitlab.get_issues(project['id']) issues = gitlab.get_issues(project['id'])
issue_with_title, issue_with_meta, meta_last_doc_version = helpers.find_issue(issues, document) issue_with_title, issue_with_meta, _meta_last_doc_version = helpers.find_issue(issues, document)
if not project['id'] in projects: if not project['id'] in projects:
projects[project['id']] = project projects[project['id']] = project
if project['id'] in projects_data: if project['id'] in projects_data:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment