Skip to content

Commit

Permalink
[#137] refactor : python date 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongSeonggil committed Jun 15, 2022
1 parent 2696477 commit a1fad12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 8 additions & 4 deletions FlaskService/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ def seller_value():
ds = []
y = []
for value in value_list:
print("date : ", value.get("date"))
print("value : ", value.get("value"))
ds.append(pd.to_datetime(value.get("date")))
y.append(value.get("value"))
date = value.get("date")
y = value.get("value")

date = date[:4] + "-" + date[4:]
print("date : ", date)
print("y", y)
ds.append(pd.to_datetime(date))
y.append(y)

s_ds = pd.Series(ds, name="ds")
s_y = pd.Series(y, name="y")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public class ItemController {
private final ItemService itemService;
private final TokenUtil tokenUtil;

// TODO: 2022/05/16 로직 추가

@PostMapping(value = "/items", consumes = MediaType.ALL_VALUE)
public ResponseEntity<String> saveItem(@RequestHeader HttpHeaders headers, ItemDto itemDto) throws Exception {
log.info(this.getClass().getName() + ".saveItem Start!");
Expand Down

0 comments on commit a1fad12

Please sign in to comment.