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).
It requests the data from MDMS and parses the output HTML
'''
from urllib.parse import urljoin, parse_qs, urlparse
import os
import requests
import bs4
import re
from urllib.parse import urljoin, parse_qs, urlparse
from datetime import datetime
from enum import Enum, unique
import re
BASE_URL = 'https://dms.mpeg.expert/doc_end_user/'
MEETINGS_URL = urljoin(BASE_URL, 'all_meeting.php')
......@@ -443,4 +443,5 @@ def find_documents( title = '',
Find documents using the search URL.
TODO: Fire a POST request to SEARCH_URL and parse the result
'''
return None
\ No newline at end of file
return None
\ No newline at end of file
......@@ -27,8 +27,8 @@ import json
import csv
import os
import sys
from automation import gitlab, mdms, helpers
from datetime import datetime
from automation import gitlab, mdms, helpers
__version__ = '1.3'
......@@ -190,7 +190,7 @@ def close_issues(table_entries, test):
continue
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:
print(' * No issue to close for:', document['document'], 'in', entry['project']['url'])
if issue_with_meta is not None:
......@@ -222,7 +222,7 @@ def create_output_doc(table_entries, output_path, template_path):
continue
project = entry['project']
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:
projects[project['id']] = project
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