Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-App-Matrix
Merge requests
!2
Resolve "Review tasks"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Review tasks"
8-review-tasks
into
master
Overview
1
Commits
20
Pipelines
17
Changes
2
1 unresolved thread
Hide all comments
Merged
Jonathan Weth
requested to merge
8-review-tasks
into
master
3 years ago
Overview
1
Commits
20
Pipelines
17
Changes
2
1 unresolved thread
Hide all comments
Expand
Closes
#8 (closed)
Edited
3 years ago
by
Jonathan Weth
0
0
Merge request reports
Viewing commit
d8194ef6
Prev
Next
Show latest version
2 files
+
12
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
d8194ef6
Fix typing
· d8194ef6
Jonathan Weth
authored
3 years ago
aleksis/apps/matrix/util/matrix.py
+
2
−
2
Options
import
time
from
json
import
JSONDecodeError
from
typing
import
Any
,
Dict
,
Optional
from
typing
import
Any
,
Optional
from
urllib.parse
import
urljoin
import
requests
@@ -24,7 +24,7 @@ def get_headers():
}
def
do_matrix_request
(
method
:
str
,
url
:
str
,
body
:
Optional
[
dict
]
=
None
)
->
D
ict
[
str
,
Any
]:
def
do_matrix_request
(
method
:
str
,
url
:
str
,
body
:
Optional
[
dict
]
=
None
)
->
d
ict
[
str
,
Any
]:
"""
Do a HTTP request to the Matrix Client Server API.
"""
while
True
:
res
=
requests
.
request
(
method
=
method
,
url
=
build_url
(
url
),
headers
=
get_headers
(),
json
=
body
)
Loading