瀏覽代碼

Fix missing time for insects

Tatiana Inama 6 年之前
父節點
當前提交
15595d37d5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      scraper/src/scraper.ts

+ 2 - 2
scraper/src/scraper.ts

@@ -111,7 +111,7 @@ const getConfig = ({ url, type }: { url: string, type: CONFIG }): ScrapeConfig<F
   } : {
     url,
     tableSelector: '[title="Northern Hemisphere"] table.sortable tbody tr',
-    split: 4,
+    split: 5,
     propMap: insectPropMap,
     extraData: (insect) => ({ flickPrice: insect.price * 1.5 } as Insect)
   }
@@ -120,7 +120,7 @@ const getConfig = ({ url, type }: { url: string, type: CONFIG }): ScrapeConfig<F
 export const INSECTS_CONFIG = (url: string): ScrapeConfig<Insect> => ({
   url,
   tableSelector: '[title="Northern Hemisphere"] table.sortable tbody tr',
-  split: 4,
+  split: 5,
   propMap: insectPropMap,
   extraData: (insect) => ({ flickPrice: insect.price * 1.5 } as Insect)
 })