From 33b846203c18eb009ebcdd90efbfb50cfa3777e3 Mon Sep 17 00:00:00 2001 From: idea4good Date: Thu, 31 Dec 2020 21:01:58 +0800 Subject: [PATCH] remove useless code --- workspace/.sync.sh | 9 --------- workspace/sync_build.bat | 11 ----------- 2 files changed, 20 deletions(-) diff --git a/workspace/.sync.sh b/workspace/.sync.sh index 7623bb9..76acc82 100755 --- a/workspace/.sync.sh +++ b/workspace/.sync.sh @@ -35,13 +35,4 @@ curl --include --request POST --header "Content-Type: application/json" --data-b \"org\" :\"$org\" }]" $url > /dev/null -url="https://api.powerbi.com/beta/72f988bf-86f1-41af-91ab-2d7cd011db47/datasets/d6c4145f-2fdc-4071-94f7-fbdb090914d4/rows?key=pQ7GFsXkAqJij4v%2BadZDoth6HB%2BmjZbAn0d%2B%2BtlWnE3jpm1s0lGKoFeFV7aF1QQ7PKOYGpQYYCkS0tjzxTgbLQ%3D%3D" - -curl --include --request POST --header "Content-Type: application/json" --data-binary "[{ -\"county\" :\"$country\", -\"city\" :\"$city\", -\"organization\" :\"$org\", -\"weight\" :1 -}]" $url > /dev/null - rm ip_* diff --git a/workspace/sync_build.bat b/workspace/sync_build.bat index 8c3c356..98a5bb8 100644 --- a/workspace/sync_build.bat +++ b/workspace/sync_build.bat @@ -52,16 +52,5 @@ set raw_data=[{^ curl.exe --include --request POST --header "Content-Type: application/json" --data-binary^ "%raw_data%" "%url%" -set url="https://api.powerbi.com/beta/72f988bf-86f1-41af-91ab-2d7cd011db47/datasets/d6c4145f-2fdc-4071-94f7-fbdb090914d4/rows?key=pQ7GFsXkAqJij4v%%2BadZDoth6HB%%2BmjZbAn0d%%2B%%2BtlWnE3jpm1s0lGKoFeFV7aF1QQ7PKOYGpQYYCkS0tjzxTgbLQ%%3D%%3D" - -set raw_data=[{^ -\"county\" :\"%country%\",^ -\"city\" :\"%city%\",^ -\"organization\" :\"%org%\",^ -\"weight\" : 1^ -}] - -curl.exe --include --request POST --header "Content-Type: application/json" --data-binary "%raw_data%" "%url%" - del ip_* exit /B 0