*Description of changes:
Per executing, data for the two weeks is added to the traffic_views_daily and traffic_clones_daily table even if data of the same org/repo/timestamp already exists.
For this reason, there were multiple duplicated data in that tables.
If data of the same org, repo, timestamp exist before adding data, delete it and add new one, so that duplication of entries is avoided.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
*Issue #, if available: N/A
*Description of changes: Per executing, data for the two weeks is added to the
traffic_views_daily
andtraffic_clones_daily
table even if data of the same org/repo/timestamp already exists. For this reason, there were multiple duplicated data in that tables.If data of the same org, repo, timestamp exist before adding data, delete it and add new one, so that duplication of entries is avoided.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.