Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ def validate() -> list[str]:
_check_slug(fname, rec.get("slug"), errors)
if "release_date" in rec:
_check_date(fname, rec["release_date"], errors)
_check_range(fname, "ram_gb", rec.get("ram_gb"), 1, 64, errors)
_check_range(fname, "ram_gb", rec.get("ram_gb"), 0.016, 64, errors)
_check_range(fname, "battery_mah", rec.get("battery_mah"), 500, 12000, errors)
_check_range(fname, "weight_g", rec.get("weight_g"), 50, 500, errors)
_check_range(fname, "weight_g", rec.get("weight_g"), 50, 1500, errors)
if "msrp_usd" in rec:
_check_range(fname, "msrp_usd", rec["msrp_usd"], 50, 5000, errors)
if rec.get("brand") not in brand_slugs:
Expand Down
3 changes: 2 additions & 1 deletion data/smartphone/apple/2007/iphone.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"brand": "apple",
"soc": "412-mhz-arm-11",
"release_date": "2007-01-01",
"ram_gb": 16,
"ram_gb": 0.125,
"battery_mah": 1500,
"weight_g": 135.0,
"os": "iOS",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
],
"storage_options_gb": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Apple iPhone",
"brand": "apple",
"release_date": "2007-01-01",
"ram_gb": 16,
"ram_gb": 0.125,
"battery_mah": 1400,
"weight_g": 135.0,
"os": "iOS, up to iOS 3.1.3",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
"https://aitoolbuzz.com/mobiles/apple-iphone"
],
"variant": {
"region": "global",
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:789",
"memory": {
"ram_gb": 16,
"ram_gb": 0.125,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Apple iPhone",
"brand": "apple",
"release_date": "2007-01-01",
"ram_gb": 16,
"ram_gb": 0.125,
"battery_mah": 1400,
"weight_g": 135.0,
"os": "iOS, upgradable to iOS 3.1.3",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
"https://www.kaggle.com/datasets/madajaswanth/phone-dataset-8461-phones"
],
"variant": {
"region": "global",
"source_dataset": "madajaswanth/phone-dataset-8461-phones",
"source_key": "madajaswanth/phone-dataset-8461-phones:2566",
"memory": {
"ram_gb": 16,
"ram_gb": 0.125,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"name": "Apple iPhone",
"brand": "apple",
"release_date": "2007-01-01",
"ram_gb": 16,
"ram_gb": 0.125,
"battery_mah": 1400,
"weight_g": 135.0,
"os": "iOS",
"verified": true,
"source_urls": [
"https://en.wikipedia.org/wiki/IPhone_(1st_generation)",
"https://www.gsmarena.com/apple_iphone-1827.php"
],
"variant": {
Expand Down
3 changes: 2 additions & 1 deletion data/smartphone/htc/2012/titan-ii.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"brand": "htc",
"soc": "qualcomm-snapdragon-s2",
"release_date": "2012-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1730,
"weight_g": 147.0,
"os": "Windows Mobile",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/HTC_Titan_II",
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
],
"storage_options_gb": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "HTC Titan II",
"brand": "htc",
"release_date": "2012-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1730,
"weight_g": 147.0,
"os": "Microsoft Windows Phone 7.5 Mango",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/HTC_Titan_II",
"https://aitoolbuzz.com/mobiles/htc-titan-ii"
],
"variant": {
"region": "global",
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:3366",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "HTC Titan II",
"brand": "htc",
"release_date": "2012-04-08",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1730,
"weight_g": 147.0,
"os": "Microsoft Windows Phone 7.5 Mango",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/HTC_Titan_II",
"https://www.kaggle.com/datasets/madajaswanth/phone-dataset-8461-phones"
],
"variant": {
"region": "global",
"source_dataset": "madajaswanth/phone-dataset-8461-phones",
"source_key": "madajaswanth/phone-dataset-8461-phones:3076",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"name": "HTC Titan II",
"brand": "htc",
"release_date": "2012-04-08",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1730,
"weight_g": 147.0,
"os": "Windows Mobile",
"verified": true,
"source_urls": [
"https://en.wikipedia.org/wiki/HTC_Titan_II",
"https://www.gsmarena.com/htc_titan_ii-4411.php"
],
"variant": {
Expand Down
5 changes: 3 additions & 2 deletions data/smartphone/lg/2011/optimus-pad-v900.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"brand": "lg",
"soc": "nvidia-tegra-2-t20",
"release_date": "2011-01-01",
"ram_gb": 32,
"ram_gb": 1,
"battery_mah": 6400,
"weight_g": 150.0,
"weight_g": 630.0,
"os": "Android",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/LG_Optimus_Pad",
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
],
"storage_options_gb": [
Expand Down
3 changes: 2 additions & 1 deletion data/smartphone/samsung/2010/i8700-omnia-7.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"brand": "samsung",
"soc": "qualcomm-qsd8250-snapdragon-s1",
"release_date": "2010-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 138.2,
"os": "Windows Mobile",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Samsung_Omnia_7",
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
],
"storage_options_gb": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Samsung I8700 Omnia 7",
"brand": "samsung",
"release_date": "2010-10-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 138.2,
"os": "Microsoft Windows Phone 7",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Samsung_Omnia_7",
"https://aitoolbuzz.com/mobiles/samsung-i8700-omnia-7"
],
"variant": {
"region": "global",
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:10061",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Samsung I8700 Omnia 7",
"brand": "samsung",
"release_date": "2010-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 138.2,
"os": "Microsoft Windows Phone 7",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Samsung_Omnia_7",
"https://www.kaggle.com/datasets/madajaswanth/phone-dataset-8461-phones"
],
"variant": {
"region": "global",
"source_dataset": "madajaswanth/phone-dataset-8461-phones",
"source_key": "madajaswanth/phone-dataset-8461-phones:6723",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"name": "Samsung I8700 Omnia 7",
"brand": "samsung",
"release_date": "2010-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 138.2,
"os": "Windows Mobile",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Samsung_Omnia_7",
"https://www.gsmarena.com/samsung_i8700_omnia_7-3537.php"
],
"variant": {
Expand Down
3 changes: 2 additions & 1 deletion data/smartphone/samsung/2011/google-nexus-s-i9023.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"brand": "samsung",
"soc": "hummingbird",
"release_date": "2011-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 129.0,
"os": "Android",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Nexus_S",
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
],
"storage_options_gb": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Samsung Google Nexus S I9023",
"brand": "samsung",
"release_date": "2011-03-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 129.0,
"os": "Android 2.3, up to 4.1.1",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Nexus_S",
"https://aitoolbuzz.com/mobiles/samsung-google-nexus-s-i9023"
],
"variant": {
"region": "global",
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:10005",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Samsung Google Nexus S I9023",
"brand": "samsung",
"release_date": "2011-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 129.0,
"os": "Android 2.3 (Gingerbread), upgradable to 4.1.1 (Jelly Bean)",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Nexus_S",
"https://www.kaggle.com/datasets/madajaswanth/phone-dataset-8461-phones"
],
"variant": {
"region": "global",
"source_dataset": "madajaswanth/phone-dataset-8461-phones",
"source_key": "madajaswanth/phone-dataset-8461-phones:6716",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"name": "Samsung Google Nexus S I9023",
"brand": "samsung",
"release_date": "2011-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1500,
"weight_g": 129.0,
"os": "Android",
"verified": true,
"source_urls": [
"https://en.wikipedia.org/wiki/Nexus_S",
"https://www.gsmarena.com/samsung_google_nexus_s_i9023-3910.php"
],
"variant": {
Expand Down
3 changes: 2 additions & 1 deletion data/smartphone/samsung/2011/i997-infuse-4g.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
"brand": "samsung",
"soc": "1-2-ghz-cortex-a8",
"release_date": "2011-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1750,
"weight_g": 139.0,
"os": "Android",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Samsung_Infuse_4G",
"https://www.kaggle.com/datasets/msainani/gsmarena-mobile-devices"
],
"storage_options_gb": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@
"name": "Samsung I997 Infuse 4G",
"brand": "samsung",
"release_date": "2011-01-01",
"ram_gb": 16,
"ram_gb": 0.5,
"battery_mah": 1750,
"weight_g": 139.0,
"os": "Android 2.2, up to 2.3",
"verified": false,
"source_urls": [
"https://en.wikipedia.org/wiki/Samsung_Infuse_4G",
"https://aitoolbuzz.com/mobiles/samsung-i997-infuse-4g"
],
"variant": {
"region": "global",
"source_dataset": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com",
"source_key": "devadigax/awesome-mobiles-database-by-aitoolbuzz-com:10090",
"memory": {
"ram_gb": 16,
"ram_gb": 0.5,
"storage_gb": 16
},
"network": {
Expand Down
Loading
Loading