Skip to content
Snippets Groups Projects
Commit a727e330 authored by tuckersiegel's avatar tuckersiegel
Browse files

port/url update

parent 60258d60
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ require('./models/gdd.js');
require('./models/gdd_current.js');
require('./models/normals.js');
const port = 27017;
const port = 4000;
const app = express();
......
......@@ -8,17 +8,17 @@ data = {
}
t = time.time()
r = requests.post("http://76.116.173.99:27017/api/soybean/daily/1981", data=data)
r = requests.post("http://localhost:4000/api/soybean/daily/1981", data=data)
print (r.status_code)
print (r.json())
print (time.time() - t)
print ()
r = requests.post("http://76.116.173.99:27017/api/soybean/normal", data=data)
r = requests.post("http://localhost:4000/api/soybean/normal", data=data)
print (r.status_code)
print (r.json())
print (time.time() - t)
print ()
r = requests.post("http://76.116.173.99:27017/api/soybean/daily/2021", data=data)
r = requests.post("http://localhost:4000/api/soybean/daily/2021", data=data)
print (r.status_code)
print (r.json())
print (time.time() - t)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment