Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
message-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 42cc1643
authored
2019-09-18 14:14:57 +0000
by
Luciano Barletta
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Ready for deployment
1 parent
7b8e3866
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
deploy.py
services.py
deploy.py
View file @
42cc164
...
...
@@ -76,6 +76,7 @@ def msg():
}
id
=
process
.
store
(
query
)
os
.
system
(
"mv ./"
+
dir
+
"/data ./"
+
dir
+
"/"
+
id
)
return
str
(
id
)
@app.route
(
'/cons'
,
methods
=
[
'POST'
])
def
cons
():
...
...
services.py
View file @
42cc164
...
...
@@ -41,7 +41,7 @@ class Wpp1(ServiceBase):
def
send
(
self
,
data
):
if
data
[
'type'
]
==
Datatypes
.
text
:
f
=
open
(
"./"
+
data
[
'dir'
]
+
"/
data"
)
f
=
open
(
"./"
+
data
[
'dir'
]
+
"/
"
+
str
(
data
[
'id'
])
)
text
=
f
.
read
()
f
.
close
()
result
=
requests
.
get
(
url
=
Wpp1
.
URL
,
params
=
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment